Cheers for the link Tex.I'll check it out but characters aren't plotted,they're just 5 adjacent bytes but I used someone else's code and the screen is remapped.
Code:
[color=Black]SetPosition:
[/color][color=Green]'20 line x 4 rows is accompished by wrapping the text on each line past 20 characters to two lines down (not next line down). Position 20 (dec) is row 3, col 1[/color]
[color=Blue]let [/color][color=Black]abyte[/color][color=DarkCyan]= [/color][color=Black]SSD1306_PAGEADDR[/color]
[color=Blue]hi2cout ([/color][color=Navy]0[/color][color=Black],abyte[/color][color=Blue])
let [/color][color=Black]abyte [/color][color=DarkCyan]= [/color][color=Black]row[/color]
[color=Blue]hi2cout ([/color][color=Navy]0[/color][color=Black],abyte[/color][color=Blue])
let [/color][color=Black]abyte [/color][color=DarkCyan]= [/color][color=Navy]7[/color]
[color=Blue]hi2cout ([/color][color=Navy]0[/color][color=Black],abyte[/color][color=Blue])
let [/color][color=Black]abyte[/color][color=DarkCyan]= [/color][color=Black]SSD1306_COLUMNADDR[/color]
[color=Blue]let [/color][color=Black]col [/color][color=DarkCyan]= [/color][color=Black]col [/color][color=DarkCyan]* [/color][color=Navy]5 [/color][color=Green];columns per character[/color]
[color=Blue]hi2cout ([/color][color=Navy]0[/color][color=Black],abyte[/color][color=Blue])
let [/color][color=Black]abyte [/color][color=DarkCyan]= [/color][color=Black]col[/color]
[color=Blue]hi2cout ([/color][color=Navy]0[/color][color=Black],abyte[/color][color=Blue])
let [/color][color=Black]abyte [/color][color=DarkCyan]= [/color][color=Navy]127[/color]
[color=Blue]hi2cout ([/color][color=Navy]0[/color][color=Black],abyte[/color][color=Blue])
return[/color]
I did a worm game. You just use an array of x,y coords of each segment,move the head and erase the tail. Usually character size graphics so only 32x24 screen. oled screen too small and pixel array too large though.
Would starting a thread about these lovely, cheap displays be of interest? It seems people have had difficulties with these in the past but the codes are easier to find now. Adafruit and GCB have libraries that draw lines and filled circles much faster than a picaxe using Bresenham's line and mid point circle algorithm. My code might save someone reinventing the wheel.
You can see the screen being cleared. I hic2out_64 1024 bytes to the screen but each byte is preceded by a 64 so that's 2K but code I've seen just sends one 64, then 1K of consecutive bytes. Strange.
I remember the TRS80. A company here re-made them as the Dragon 32. Ah, nostalgia isn't what it used to be.