by i-Bot » Tue Feb 26, 2008 3:48 pm
by i-Bot
Tue Feb 26, 2008 3:48 pm
I uploaded the Spin files for the Propellor head LCD with the added option to display bitmaps. I also added a bit to ignore Null bytes, since these were seen before the LCD port was initialised. The LCD port cannot send Null.
http://robosavvy.com/Builders/i-Bot/Rob ... .13%5d.zip
The spin code is programmed to the uOLED-96-Prop from the propellor tool. For this you need the propellor plug from parallax or the uUSB-MB5. You will need the objects contained in the archive, because the SD card driver is configured for the uOLED, and not standard.
The uOLED connects to the C3024 controller on the LCD port.
C3024 LCD Port Signal via 1.5K resistor to uOLED pin10 = propellor pin 18
C3024 LCD Port 5V direct to uOLED pin 1 - uOLED Vcc Supply input
C3024 LCD Port GND direct to uOLED pin 4 - uOLED GND ground
For bitmaps it only supports 96*64 .BMP files in 24 bit colour format. These can be created by the MS Paint program. Either create or copy an image and then resize to exactly 96 wide by 64 high. This is then saved as a .bmp file with 24 bit colour. The .bmp files must be located in the root directory of the micro SD card which is to go into the uOLED.
You will see a file "shrek.bmp" in the archive. You can change the spin code to use a dfifferent one on startup. To call an image from Robobasic using:
PRINT &H1b, &H60, "shrek", &HFF
This will display the file "shrek.bmp", or any other 96*64 24 bit .bmp file you have on the SD Card
Update to display is rather slow, at about 1.5 sec, so if anyone can speed it up, please help. The delays are in both the reading of the FAT filesystem, and in the display.
I uploaded the Spin files for the Propellor head LCD with the added option to display bitmaps. I also added a bit to ignore Null bytes, since these were seen before the LCD port was initialised. The LCD port cannot send Null.
http://robosavvy.com/Builders/i-Bot/Rob ... .13%5d.zip
The spin code is programmed to the uOLED-96-Prop from the propellor tool. For this you need the propellor plug from parallax or the uUSB-MB5. You will need the objects contained in the archive, because the SD card driver is configured for the uOLED, and not standard.
The uOLED connects to the C3024 controller on the LCD port.
C3024 LCD Port Signal via 1.5K resistor to uOLED pin10 = propellor pin 18
C3024 LCD Port 5V direct to uOLED pin 1 - uOLED Vcc Supply input
C3024 LCD Port GND direct to uOLED pin 4 - uOLED GND ground
For bitmaps it only supports 96*64 .BMP files in 24 bit colour format. These can be created by the MS Paint program. Either create or copy an image and then resize to exactly 96 wide by 64 high. This is then saved as a .bmp file with 24 bit colour. The .bmp files must be located in the root directory of the micro SD card which is to go into the uOLED.
You will see a file "shrek.bmp" in the archive. You can change the spin code to use a dfifferent one on startup. To call an image from Robobasic using:
PRINT &H1b, &H60, "shrek", &HFF
This will display the file "shrek.bmp", or any other 96*64 24 bit .bmp file you have on the SD Card
Update to display is rather slow, at about 1.5 sec, so if anyone can speed it up, please help. The delays are in both the reading of the FAT filesystem, and in the display.