...
Mom says she likes the bright red cord best, even more than the board itself. *.*
...
#pragma config FOSC = INTIO67
#pragma config WDTEN = OFF, LVP = OFF
#include "p18f46K20.h"
void main(void)
{
TRISD = 0b01111111;
LATDbits.LATD7 = 1;
while (1)
;
}
I click Build All, and I get this error:Error - could not find definition of symbol 'TRISD' in file './led1.o'.
extern volatile near unsigned char TRISD;
I have no idea what's happening here. Can anyone here help?
well, isn't every program you write for a pic a bit of an OS?Yes that is true. But I'm making a program that actually behaves like an OS, with program launching and stuff.
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...Yes the screen is only B/W but you can adjust the brightness (if I'm not mistaken, you can adjust brightness for a single pixel but I'm not sure).
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 pixelOk I lied there. There is a text drawing function. Also, I made a decimal to binary to hex to octal converter for it :D No video yet, but I should have one uploaded in a week or so :)