Comments (7)
Hi, if you let me know what sort of issues you had, I can help - is this with setting up the software or wiring up the board?
from luma.lcd.
Hello Richard,
First during initial setup it said that the
WiringPy.so file could not be found, Then i made a dummy file called
WiringPy.so in WiringPi directory(which Worked), Later i had to include
the Lib directory in MakeFile using -I flag for Compile instructions of
the initial WiringPY.c.
I got the WiringPy.so in the Python Lib but still it says WiringPiDebug
something is undefined.
I am not sure this is only for me or other users experienced the same.
I am at work now, Will give u full details once i get home(If u need any)
I got the LCD delivered today.
Wishes
Karry Crasto
On 05/02/2013 15:14, Richard Hull wrote:
Hi, if you let me know what sort of issues you had, I can help - is
this with setting up the software or wiring up the board?—
Reply to this email directly or view it on GitHub
#1 (comment).
from luma.lcd.
Hi, you can't just create a dummy wiringPy.so
! :-)
That file is required, and needs to be built and installed separately - it is a low-level shared object that contains all the python bindings to interface with C code that ultimately controls the GPIO ports.
You need to follow the instructions here: https://github.com/rm-hull/wiringPi to build and install the the relevant libraries - if that was successful you should be able to see a wiringPy.so
file in directory /usr/lib/python2.7/lib-dynload
.
After that, you should be able to get the pcd8544 module installed and try the demos ... oh and you'll need to wire up the board too ;-)
Also be aware that there are different breakout boards attached to the LCD screens, so don't rely on the position of the pins, go by what the pin label shows
from luma.lcd.
I got the board working with some other c sample programs, i have the
wiringPy.so in my python 2.7 lib, but when i run the sample programs it
says debugwiringpi is undefined.
On Feb 6, 2013 1:59 AM, "Richard Hull" [email protected] wrote:
Hi, you can't just create a dummy wiringPy.so ! :-)
That file is required, and needs to be built and installed separately - it
is a low-level shared object that contains all the python bindings to
interface with C code that ultimately controls the GPIO ports.You need to follow the instructions here:
https://github.com/rm-hull/wiringPi to build and install the the relevant
libraries - if that was successful you should be able to see a wiringPy.sofile in directory
/usr/lib/python2.7/lib-dynload.After that, you should be able to get the pcd8544 module installed and try
the demos ... oh and you'll need to wire up the board too ;-)Also be aware that there are different breakout boards attached to the
LCD screens, so don't rely on the position of the pins, go by what the pin
label shows—
Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-13150062.
from luma.lcd.
I've pulled from the drogon's master branch again, and done some re-org around the python bindings... so if you do the following:
$ cd ~/wiringPi
$ git pull
$ ./build clean
$ ./build
This should install the latest wiringPi shared objects, then if you do:
$ nm -Cg /usr/local/lib/python2.7/dist-packages/wiringPy.so
You will get presented a long list of all the function names as below (note, I moved the python bindings .so to a different directory from my previous message)
U PyArg_ParseTuple
U PyErr_NewException
U PyModule_AddObject
U Py_BuildValue
U Py_InitModule4
w _Jv_RegisterClasses
U _Py_NoneStruct
00011d98 A __bss_end__
000116c0 A __bss_start
000116c0 A __bss_start__
U __ctype_b_loc@@GLIBC_2.4
w __cxa_finalize@@GLIBC_2.4
00011d98 A __end__
U __errno_location@@GLIBC_2.4
w __gmon_start__
00011d98 A _bss_end__
000116c0 A _edata
00011d98 A _end
00007560 T _fini
000026d8 T _init
U cfmakeraw@@GLIBC_2.4
U cfsetispeed@@GLIBC_2.4
U cfsetospeed@@GLIBC_2.4
U close@@GLIBC_2.4
00011d78 B config
000118fe B dataOutRegister
000034ec T delay
00003804 T delayMicroseconds
00003750 T delayMicrosecondsHard
00011d24 B digitalRead
00002f2c T digitalReadGpio
0000492c T digitalReadPiFace
000030ac T digitalReadSys
00002ee0 T digitalReadWPi
00011d30 B digitalWrite
00011d40 B digitalWriteByte
00002d28 T digitalWriteByteGpio
00004700 T digitalWriteBytePiFace
00003158 T digitalWriteByteSys
00002cac T digitalWriteGpio
0000470c T digitalWritePiFace
00004954 T digitalWritePiFaceSpecial
00005ddc T digitalWriteSerial
00005cd8 T digitalWriteSerialArray
00003108 T digitalWriteSys
00002c38 T digitalWriteWPi
U execl@@GLIBC_2.4
U exit@@GLIBC_2.4
U fclose@@GLIBC_2.4
U fcntl@@GLIBC_2.4
U fgets@@GLIBC_2.4
U fopen@@GLIBC_2.4
U fork@@GLIBC_2.4
U fprintf@@GLIBC_2.4
U fwrite@@GLIBC_2.4
00005090 T gertboardAnalogRead
00005050 T gertboardAnalogWrite
000050e0 T gertboardSPISetup
00011d28 B getAlt
00002b88 T getAltGpio
00002bdc T getAltSys
00002bc0 T getAltWPi
U getenv@@GLIBC_2.4
U geteuid@@GLIBC_2.4
U gettimeofday@@GLIBC_2.4
00011d50 B gpioClockSet
00002de0 T gpioClockSetGpio
00002ed8 T gpioClockSetSys
00002ebc T gpioClockSetWPi
00007270 T initwiringPy
U ioctl@@GLIBC_2.4
000054b4 T lcdClear
00005490 T lcdHome
00005610 T lcdInit
000054f8 T lcdPosition
000055b8 T lcdPrintf
00005538 T lcdPutchar
00005588 T lcdPuts
000054d8 T lcdSendCommand
00011d58 B lcds
U lseek@@GLIBC_2.4
U malloc@@GLIBC_2.4
00003bb4 T micros
00003b60 T millis
U mmap@@GLIBC_2.4
U nanosleep@@GLIBC_2.4
00011578 D newPin
U open@@GLIBC_2.4
00003240 T piBoardRev
00005910 T piHiPri
00005980 T piLock
0000595c T piThreadCreate
00005998 T piUnlock
00011d44 B pinMode
00003a1c T pinModeGpio
00004630 T pinModePiFace
00002f74 T pinModeSys
00003b44 T pinModeWPi
U poll@@GLIBC_2.4
U printf@@GLIBC_2.4
U pthread_create@@GLIBC_2.4
U pthread_mutex_lock@@GLIBC_2.4
U pthread_mutex_unlock@@GLIBC_2.4
000118fd B pudRegister
00011d48 B pullUpDnControl
00003848 T pullUpDnControlGpio
000046c0 T pullUpDnControlPiFace
000048f4 T pullUpDnControlPiFaceSpecial
00002f70 T pullUpDnControlSys
000038cc T pullUpDnControlWPi
U puts@@GLIBC_2.4
00011d38 B pwmSetClock
00002c34 T pwmSetClockSys
000038e8 T pwmSetClockWPi
00011d2c B pwmSetMode
00002c2c T pwmSetModeSys
00002be4 T pwmSetModeWPi
00011d54 B pwmSetRange
00002c30 T pwmSetRangeSys
000039e4 T pwmSetRangeWPi
00011d34 B pwmWrite
00002d90 T pwmWriteGpio
00004634 T pwmWritePiFace
00002ddc T pwmWriteSys
00002dc0 T pwmWriteWPi
U raise@@GLIBC_2.4
U read@@GLIBC_2.4
000051e0 T readNesJoystick
U sched_get_priority_max@@GLIBC_2.4
U sched_setscheduler@@GLIBC_2.4
00004da8 T serialClose
00004e50 T serialDataAvail
00004da0 T serialFlush
00004e78 T serialGetchar
00004b70 T serialOpen
00004df8 T serialPrintf
00004dac T serialPutchar
00004dd0 T serialPuts
00005c6c T serialize
00011d4c B setPadDrive
00003220 T setPadDriveGpio
00002edc T setPadDriveSys
00003198 T setPadDriveWPi
00005b5c T setupBitBang
00005120 T setupNesJoystick
00004ea0 T shiftIn
00004f88 T shiftOut
00005ef4 T softPwmCreate
00005eb4 T softPwmWrite
00006248 T softServoSetup
000061f0 T softServoWrite
00006594 T softToneCreate
00006564 T softToneWrite
U sprintf@@GLIBC_2.4
U stderr@@GLIBC_2.4
U strerror@@GLIBC_2.4
U strlen@@GLIBC_2.4
U strncmp@@GLIBC_2.4
U tcflush@@GLIBC_2.4
U tcgetattr@@GLIBC_2.4
U tcsetattr@@GLIBC_2.4
U usleep@@GLIBC_2.4
U vsnprintf@@GLIBC_2.4
U wait@@GLIBC_2.4
00011d3c B waitForInterrupt
0000308c T waitForInterruptGpio
00004638 T waitForInterruptPiFace
00002fe4 T waitForInterruptSys
00003090 T waitForInterruptWPi
000118f4 B wiringPiDebug
0000353c T wiringPiISR
000059c8 T wiringPiSPIDataRW
000059b0 T wiringPiSPIGetFd
00005a38 T wiringPiSPISetup
00003bf4 T wiringPiSetup
00004198 T wiringPiSetupGpio
0000498c T wiringPiSetupPiFace
00004a8c T wiringPiSetupPiFaceForGpioProg
000043c8 T wiringPiSetupSys
00003224 T wpiPinToGpio
U write@@GLIBC_2.4
from luma.lcd.
Got the code running, But nothing showed up on the display, Everything
is connected as shown the diagram, This
(http://binerry.de/post/25787954149/pcd8544-library-for-raspberry-pi)
has different schematics but i got it to work.
Maybe i connected wrong, But i double checked my connections which
matched your schematics.
Wishes,
Karry Crasto
On 07/02/2013 02:14, Richard Hull wrote:
I've pulled from the drogon's master branch again, and done some
re-org around the python bindings... so if you do the following:|$ cd ~/wiringPi
$ git pull
$ ./build clean
$ ./build
|This should install the latest wiringPi shared objects, then if you do:
|$ nm -Cg /usr/local/lib/python2.7/dist-packages/wiringPy.so
|You will get presented a long list of all the function names as below
(note, I moved the python bindings .so to a different directory from
my previous message)| U PyArg_ParseTuple
U PyErr_NewException
U PyModule_AddObject
U Py_BuildValue
U Py_InitModule4
w _Jv_RegisterClasses
U Py_NoneStruct
00011d98 A bss_end
000116c0 A bss_start
000116c0 A __bss_start
U ctype_b_loc@@GLIBC_2.4
w __cxa_finalize@@GLIBC_2.4
00011d98 A __end
U errno_location@@GLIBC_2.4
w __gmon_start
00011d98 A bss_end
000116c0 A _edata
00011d98 A _end
00007560 T _fini
000026d8 T _init
U cfmakeraw@@GLIBC_2.4
U cfsetispeed@@GLIBC_2.4
U cfsetospeed@@GLIBC_2.4
U close@@GLIBC_2.4
00011d78 B config
000118fe B dataOutRegister
000034ec T delay
00003804 T delayMicroseconds
00003750 T delayMicrosecondsHard
00011d24 B digitalRead
00002f2c T digitalReadGpio
0000492c T digitalReadPiFace
000030ac T digitalReadSys
00002ee0 T digitalReadWPi
00011d30 B digitalWrite
00011d40 B digitalWriteByte
00002d28 T digitalWriteByteGpio
00004700 T digitalWriteBytePiFace
00003158 T digitalWriteByteSys
00002cac T digitalWriteGpio
0000470c T digitalWritePiFace
00004954 T digitalWritePiFaceSpecial
00005ddc T digitalWriteSerial
00005cd8 T digitalWriteSerialArray
00003108 T digitalWriteSys
00002c38 T digitalWriteWPi
U execl@@GLIBC_2.4
U exit@@GLIBC_2.4
U fclose@@GLIBC_2.4
U fcntl@@GLIBC_2.4
U fgets@@GLIBC_2.4
U fopen@@GLIBC_2.4
U fork@@GLIBC_2.4
U fprintf@@GLIBC_2.4
U fwrite@@GLIBC_2.4
00005090 T gertboardAnalogRead
00005050 T gertboardAnalogWrite
000050e0 T gertboardSPISetup
00011d28 B getAlt
00002b88 T getAltGpio
00002bdc T getAltSys
00002bc0 T getAltWPi
U getenv@@GLIBC_2.4
U geteuid@@GLIBC_2.4
U gettimeofday@@GLIBC_2.4
00011d50 B gpioClockSet
00002de0 T gpioClockSetGpio
00002ed8 T gpioClockSetSys
00002ebc T gpioClockSetWPi
00007270 T initwiringPy
U ioctl@@GLIBC_2.4
000054b4 T lcdClear
00005490 T lcdHome
00005610 T lcdInit
000054f8 T lcdPosition
000055b8 T lcdPrintf
00005538 T lcdPutchar
00005588 T lcdPuts
000054d8 T lcdSendCommand
00011d58 B lcds
U lseek@@GLIBC_2.4
U malloc@@GLIBC_2.4
00003bb4 T micros
00003b60 T millis
U mmap@@GLIBC_2.4
U nanosleep@@GLIBC_2.4
00011578 D newPin
U open@@GLIBC_2.4
00003240 T piBoardRev
00005910 T piHiPri
00005980 T piLock
0000595c T piThreadCreate
00005998 T piUnlock
00011d44 B pinMode
00003a1c T pinModeGpio
00004630 T pinModePiFace
00002f74 T pinModeSys
00003b44 T pinModeWPi
U poll@@GLIBC_2.4
U printf@@GLIBC_2.4
U pthread_create@@GLIBC_2.4
U pthread_mutex_lock@@GLIBC_2.4
U pthread_mutex_unlock@@GLIBC_2.4
000118fd B pudRegister
00011d48 B pullUpDnControl
00003848 T pullUpDnControlGpio
000046c0 T pullUpDnControlPiFace
000048f4 T pullUpDnControlPiFaceSpecial
00002f70 T pullUpDnControlSys
000038cc T pullUpDnControlWPi
U puts@@GLIBC_2.4
00011d38 B pwmSetClock
00002c34 T pwmSetClockSys
000038e8 T pwmSetClockWPi
00011d2c B pwmSetMode
00002c2c T pwmSetModeSys
00002be4 T pwmSetModeWPi
00011d54 B pwmSetRange
00002c30 T pwmSetRangeSys
000039e4 T pwmSetRangeWPi
00011d34 B pwmWrite
00002d90 T pwmWriteGpio
00004634 T pwmWritePiFace
00002ddc T pwmWriteSys
00002dc0 T pwmWriteWPi
U raise@@GLIBC_2.4
U read@@GLIBC_2.4
000051e0 T readNesJoystick
U sched_get_priority_max@@GLIBC_2.4
U sched_setscheduler@@GLIBC_2.4
00004da8 T serialClose
00004e50 T serialDataAvail
00004da0 T serialFlush
00004e78 T serialGetchar
00004b70 T serialOpen
00004df8 T serialPrintf
00004dac T serialPutchar
00004dd0 T serialPuts
00005c6c T serialize
00011d4c B setPadDrive
00003220 T setPadDriveGpio
00002edc T setPadDriveSys
00003198 T setPadDriveWPi
00005b5c T setupBitBang
00005120 T setupNesJoystick
00004ea0 T shiftIn
00004f88 T shiftOut
00005ef4 T softPwmCreate
00005eb4 T softPwmWrite
00006248 T softServoSetup
000061f0 T softServoWrite
00006594 T softToneCreate
00006564 T softToneWrite
U sprintf@@GLIBC_2.4
U stderr@@GLIBC_2.4
U strerror@@GLIBC_2.4
U strlen@@GLIBC_2.4
U strncmp@@GLIBC_2.4
U tcflush@@GLIBC_2.4
U tcgetattr@@GLIBC_2.4
U tcsetattr@@GLIBC_2.4
U usleep@@GLIBC_2.4
U vsnprintf@@GLIBC_2.4
U wait@@GLIBC_2.4
00011d3c B waitForInterrupt
0000308c T waitForInterruptGpio
00004638 T waitForInterruptPiFace
00002fe4 T waitForInterruptSys
00003090 T waitForInterruptWPi
000118f4 B wiringPiDebug
0000353c T wiringPiISR
000059c8 T wiringPiSPIDataRW
000059b0 T wiringPiSPIGetFd
00005a38 T wiringPiSPISetup
00003bf4 T wiringPiSetup
00004198 T wiringPiSetupGpio
0000498c T wiringPiSetupPiFace
00004a8c T wiringPiSetupPiFaceForGpioProg
000043c8 T wiringPiSetupSys
00003224 T wpiPinToGpio
U write@@GLIBC_2.4
|—
Reply to this email directly or view it on GitHub
#1 (comment).
from luma.lcd.
Like I said earlier:
Also be aware that there are different breakout boards attached to the LCD screens, so don't rely on the position of the pins, go by what the pin label shows
If you got it working with binerry's libs then that's good I guess; However, I definitely used different pin-outs to him - my aim is to use hardware SPI rather than software bit-banging, so it is wired to the SPI-specific pins.
from luma.lcd.
Related Issues (20)
- HD44780 with I2C backpack HOT 6
- Stray pixels when using diff_to_previous with ILI9341 HOT 20
- test_ili9341 hangs HOT 3
- Error trying PWMBacklight with ili9341 HOT 23
- Help with speed difference between SBCs HOT 15
- ili9341 and PWM support? HOT 1
- Thoughts on Bridgetek EVE (Embedded Video Engine) HOT 11
- Support for ili9486 HOT 9
- Trying to get this to work with Spotpear LCD HOT 20
- ST7789 - maximum height and width? HOT 9
- Multiple TFT Screens (ST7735) HOT 2
- Standard 'gpio_LIGHT' pin causes crash of I2S HOT 1
- Support ILI9488 3.5" (320x480) displays HOT 4
- The function device.backlight(False) turns on the lights, instead of device.backlight(True) HOT 7
- DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01)
- RuntimeError: This module can only be run on a Raspberry Pi! HOT 2
- Comment error: HT1621 may actually 1/3 bias HOT 2
- ILI9341 issue?
- st7735 white screen
- Question: HD44780 Cursor Show/Hide and Line/Blink
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luma.lcd.