Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
reference:pmod:pmodoledrgb:reference-manual [2017/03/04 21:48]
James Colvin [Quick Data Acquisition]
reference:pmod:pmodoledrgb:reference-manual [2019/12/02 17:53] (current)
Martha [Quick Data Acquisition]
Line 79: Line 79:
   - Set the Contrast for Color B (default green), effectively setting the brightness level. See the 4th bullet point on page 23 of the [[https://​cdn-shop.adafruit.com/​datasheets/​SSD1331_1.2.pdf|datasheet]] for the associated equation and more details.\\ <​code>​SpiWriteMultiple(2,​ 0x82, 0x50); //Write two bytes-- the Color B contrast command and the single byte value </​code>​   - Set the Contrast for Color B (default green), effectively setting the brightness level. See the 4th bullet point on page 23 of the [[https://​cdn-shop.adafruit.com/​datasheets/​SSD1331_1.2.pdf|datasheet]] for the associated equation and more details.\\ <​code>​SpiWriteMultiple(2,​ 0x82, 0x50); //Write two bytes-- the Color B contrast command and the single byte value </​code>​
   - Set the Contrast for Color C (default blue), effectively setting the brightness level. See the 4th bullet point on page 23 of the [[https://​cdn-shop.adafruit.com/​datasheets/​SSD1331_1.2.pdf|datasheet]] for the associated equation and more details.\\ <​code>​SpiWriteMultiple(2,​ 0x83, 0x7D); //Write two bytes-- the Color C contrast command and the single byte value </​code>​   - Set the Contrast for Color C (default blue), effectively setting the brightness level. See the 4th bullet point on page 23 of the [[https://​cdn-shop.adafruit.com/​datasheets/​SSD1331_1.2.pdf|datasheet]] for the associated equation and more details.\\ <​code>​SpiWriteMultiple(2,​ 0x83, 0x7D); //Write two bytes-- the Color C contrast command and the single byte value </​code>​
-  - Disable Scrolling.\\ <​code>​SpiWrite(0x25); //Write a single byte-- the disable scrolling command ​ </​code>​+  - Disable Scrolling.\\ <​code>​SpiWrite(0x25E); //Write a single byte-- the disable scrolling command ​ </​code>​
   - Clear the screen by sending the clear command and the dimensions of the window to clear (top column, top row, bottom column, bottom row).\\ <​code>​SpiWriteMultiple(5,​ 0x25, 0x00, 0x00, 0x5F, 0x3F); //Write 5 bytes-- the clear command and the five bytes representing the area to clear </​code>​   - Clear the screen by sending the clear command and the dimensions of the window to clear (top column, top row, bottom column, bottom row).\\ <​code>​SpiWriteMultiple(5,​ 0x25, 0x00, 0x00, 0x5F, 0x3F); //Write 5 bytes-- the clear command and the five bytes representing the area to clear </​code>​
   - Bring VCCEN ([[:​reference:​pmod:​pmodoledrgb:​reference-manual#​pinout_description_table|pin 9]]) logic high and wait 25 ms.   - Bring VCCEN ([[:​reference:​pmod:​pmodoledrgb:​reference-manual#​pinout_description_table|pin 9]]) logic high and wait 25 ms.