LCD Support - hgdeoro/py-arduino-proxy GitHub Wiki

PyArduinoProxy now is py-arduino

PyArduinoProxy now is py-arduino

I've renamed the project to py-arduino, please check it out at:

https://github.com/hgdeoro/py-arduino

I didn't like the 'proxy' word in its name, and made big changes, including:

  • refactored low level code to the new py_arduino package
  • refactores web application stuff to py_arduino_web package
  • add multiprocess support + background tasks, aka: concurrent access (thanks to uWSGI + PyRO)
  • labeling of pins and restricted acces from web (administrable using Django)
  • cleaned up old code (like old examples) and an updated README

Old content

Wiki home | Git repo | How-to-install | Web-Interface | Blog (spanish) | Site (spanish)


To generate the sketch with support for LCD (tested with an 16x2 LCD), run the generate-pde.sh script with the --lcd parameter:

cd ~/py-arduino-proxy
./scripts/generate-pde.sh --lcd

The new sketch will be located at ~/py-arduino-proxy/pde/py-arduino-proxy. Open with the Arduino IDE, compile and upload.

The pin used for the connection to the LCD are defined in ~/py-arduino-proxy/pde/py-arduino-proxy/py-arduino-proxy.h:

#define PY_ARDUINO_PROXY_LCD_SUPPORT_rs     7
#define PY_ARDUINO_PROXY_LCD_SUPPORT_enable 6
#define PY_ARDUINO_PROXY_LCD_SUPPORT_d4     5
#define PY_ARDUINO_PROXY_LCD_SUPPORT_d5     4
#define PY_ARDUINO_PROXY_LCD_SUPPORT_d6     3
#define PY_ARDUINO_PROXY_LCD_SUPPORT_d7     2

To change the PINs used to connect the LCD you must change this file, re-compile and upload. Remember, it will be overwriten the next time you run generate-pde.sh