Author Topic: Spyro gots a pickit 2 starter kit  (Read 12637 times)

0 Members and 1 Guest are viewing this topic.

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Spyro gots a pickit 2 starter kit
« Reply #15 on: February 01, 2012, 10:59:13 am »
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?
i'm curious to what it looks like :) even if it's text based, you have to start with something, so that's really not bad..

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Spyro gots a pickit 2 starter kit
« Reply #16 on: February 01, 2012, 02:14:05 pm »
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...

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?
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).

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Spyro gots a pickit 2 starter kit
« Reply #17 on: February 02, 2012, 08:28:49 am »
wow, so you can place programs on it that you can run from the os? nice, how're you gonna do that, because then you'll have to use the memory mapping (or how you would like to call it)...
i sure want to see that working, nice :)

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Spyro gots a pickit 2 starter kit
« Reply #18 on: February 08, 2012, 08:27:11 pm »
Sorry, no video about this (yet) but I did make a rectangle drawing routine. (Yes, I'm still playing around with it!! :D) You may think this is worthless, but the only way to interface with the screen is pixel by pixel. (Think of it this way:  drawing to the graph screen by only using Pxl-On().) So it was actually a bit challenging getting it working right. Here's the code for it:
Code: [Select]
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();
}

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Spyro gots a pickit 2 starter kit
« Reply #19 on: February 10, 2012, 04:49:49 pm »

Here is a video of the rectangle drawing routine + example program, all written by me :)

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Spyro gots a pickit 2 starter kit
« Reply #20 on: February 11, 2012, 08:05:45 am »
I'm thinking about possible ways to get this thing to graph. I probably couldn't draw a solid line, but I could just draw some tested points.

Offline thydowulays

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 184
  • Rating: +12/-1
  • Don't gimme dat lip
    • View Profile
    • Thy Gaming Forum
Re: Spyro gots a pickit 2 starter kit
« Reply #21 on: February 11, 2012, 08:18:37 am »
This looks quite amazing! Maybe if some of our members got one of those, a mini community could evolve from it!
Current Projects:
-Sparta GUI Library: 25% - Alpha Stage
-Grapher - 75% - Beta Stage *on hiatus




Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Spyro gots a pickit 2 starter kit
« Reply #22 on: February 20, 2012, 08:09:10 pm »
the only way to interface with the screen is pixel by pixel
Ok 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 :)