Thank You for your continued support and contributions!
unsigned int a,b,c=0; Â Â for(a=0;a<=255;a++) Â Â { Â Â Â Â for(b=0;b<=255;b++) Â Â Â Â { Â Â Â Â Â Â for(c=0;c<=255;c++) Â Â Â Â Â Â { Â Â Â Â Â Â Â Â Â Â rb->lcd_set_background(LCD_RGBPACK(a,b,c)); Â Â Â Â Â Â Â Â Â Â rb->lcd_clear_display(); Â Â Â Â Â Â Â Â Â Â rb->lcd_update(); Â Â Â Â Â Â } Â Â Â Â } Â Â Â Â } Â Â
What target by the way?
rb->lcd_clear_display(); This will clear the display, writing the background colour to the entire screen. Again, no input required, so it can just be called as is.
  rb->lcd_set_backdrop(NULL);   rb->lcd_clear_display();   unsigned int a,b,c=0;   for(a=0;a<=255;a+=32)   {     for(b=0;b<=255;b+=32)     {       for(c=0;c<=255;c+=32)       {           rb->lcd_set_background(LCD_RGBPACK(a,b,c));           rb->lcd_clear_display();           rb->sleep(HZ/10);       }     }     }
#include "plugin.h"PLUGIN_HEADERstatic struct plugin_api* rb;enum plugin_status plugin_start(struct plugin_api* api, void* parameter){ (void)parameter; rb = api; rb->lcd_set_backdrop(NULL); rb->lcd_clear_display(); unsigned int a,b,c=0; for(a=0;a<=255;a+=32) { for(b=0;b<=255;b+=32) { for(c=0;c<=255;c+=32) { rb->lcd_set_background(LCD_RGBPACK(a,b,c)); rb->lcd_clear_display(); rb->sleep(HZ/10); } } } return PLUGIN_OK;}
Thanks linuxstb! That works.
Page created in 0.084 seconds with 18 queries.