Skip to content

Instantly share code, notes, and snippets.

@itpcc
Last active February 10, 2016 17:21
Show Gist options
  • Save itpcc/b9063e3937e6ec355893 to your computer and use it in GitHub Desktop.
Save itpcc/b9063e3937e6ec355893 to your computer and use it in GitHub Desktop.
Example of using PROGMEM and making image transition by delay
if(millis()-lastCheckEPOCH > 200){
for(i = 0; i < 128; i++)
bitmapBuffer[i] = pgm_read_byte(&sawasdee[(rowDisplay*128)+i]);
OLED.LED_PrintBMP(0, rowDisplay, 127, rowDisplay, bitmapBuffer);
lastCheckEPOCH = millis();
Serial.print("rowDisplay : "); Serial.println(rowDisplay);
rowDisplay++;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment