0 Members and 1 Guest are viewing this topic.
well, isn't every program you write for a pic a bit of an OS?
well, isn't every program you write for a pic a bit of an OS? since there is (afaik) only a bootloader and boot available, so...but still it is nice, i really love the screen, but is it B/W, or was that just the pong game being only B/W?
void drawRect(unsigned char x1,unsigned char y1,unsigned char w,unsigned char h){for(dx=x1; dx<=(x1+w); dx++){ putpixel_vram(dx,y1,1); }for(dx=x1; dx<=(x1+w); dx++){ putpixel_vram(dx,(y1+h),1); }for (dy=y1; dy<=(y1+h); dy++){ putpixel_vram(x1,dy,1); }for (dy=y1; dy<=(y1+h); dy++){ putpixel_vram((x1+w),dy,1); }oled_refresh();}
the only way to interface with the screen is pixel by pixel