Skip to content

vineethh91/Etch-A-Sketch

Repository files navigation

############################################################################################################################
#                            
# Get the hell out of here!  
#                            
############################################################################################################################

############################################################################################################################
#Usage:                       
#                            
# Download repo
# >git checkout <repository>  
# >chmod a+x startLEDBoard.sh 
# >chmod a+x stopLEDBoard.sh 
#
# === STARTING THE WEBSERVER
# To start:                    
#  in regular mode(no verbose logging)
#    >./startLEDBoard.sh
#  in debug mode(verbose logging)
#    >./startDebugModeLEDBoard.sh
#                             
# To stop:                    
# >./stopLEDBoard.sh          
#
# To send GET/POST requests to board
#   *Start the led board using script above
#   *visit http://raspberrypi:8080/boardcommandcenter.html
#   *Type in your parameters and hit the button! 
#
#   **Or construct your own eg. http://raspberrypi:8080/boardcommandcenter.html?get_arg1=command%3Ainitialize
#
# To view GUI from external IP
#  * Add port forwarding rule on your router to route traffic to the raspberry pi IP for port 8080
#  * then visit <yourExternalIP>:8080/boardcommandcenter.html
#
# To view logs for webserver requests
#  >cd www-logs/
#  >cat webserver-0.0.0.0-8080.err 
#
# ==RUN THE LED MATRIX DIAGNOSTICS TEST
# To run test the LED Matrix 
#  * Wire up board to Raspberry Pi Model B as per the pin mapping in BoardHandler.py
#  * Run >pythong2.7 BoardHandlerTest.py
#  * You should see a fully white board with a square rotated 45 degrees
#
# Reference materials :
#   *Technical Details section outlines how it works - https://github.com/adafruit/rpi-rgb-led-matrix
#   **More details - https://learn.adafruit.com/32x16-32x32-rgb-led-matrix/how-the-matrix-works
#   **Adafruit pdf on the led board - https://learn.adafruit.com/downloads/pdf/32x16-32x32-rgb-led-matrix.pdf
#   **Random dude's project using this board - http://bikerglen.com/projects/lighting/led-panel-1up/#Theory_of_Operation
#   *http://www.rayslogic.com/propeller/programming/AdafruitRGB/AdafruitRGB.htm
#   *32x32 LED board page - https://www.sparkfun.com/products/12584
#   **Guide - https://learn.sparkfun.com/tutorials/rgb-panel-hookup-guide?_ga=1.102262851.31206856.1455497798
#   *Github repos :
#   **https://github.com/adafruit/RGB-matrix-Panel
#   **https://github.com/adafruit/Adafruit-GFX-Library
#   *Binary code modulation theory - http://www.batsocks.co.uk/readme/art_bcm_1.htm
#   **http://bikerglen.com/projects/lighting/led-panel-1up/#Driving_the_Panel
#   **Some more code samples - http://raspberryalphaomega.org.uk/2013/06/18/efficient-software-pwm-with-bit-angle-modulation/
#
#   *PIL -> Array - http://stackoverflow.com/questions/2659312/how-do-i-convert-a-numpy-array-to-and-display-an-image
#   **http://effbot.org/imagingbook/image.htm
#   **http://effbot.org/imagingbook/imagedraw.htm
############################################################################################################################