Skip to content

Commit

Permalink
Merge pull request #23 from miracoli/master
Browse files Browse the repository at this point in the history
  • Loading branch information
smaffer committed Apr 17, 2021
2 parents 8d1ee99 + 502c5bc commit ed760dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VGAX.cpp
Expand Up @@ -35,7 +35,7 @@ You can modify this value to center the framebuffer vertically, or not*/
#endif

static byte afreq, afreq0;
unsigned vtimer;
unsigned long vtimer;
static byte aline, rlinecnt;
static byte vskip;
byte vgaxfb[VGAX_HEIGHT*VGAX_BWIDTH];
Expand Down
4 changes: 2 additions & 2 deletions VGAX.h
Expand Up @@ -52,7 +52,7 @@ HERE you can find some inline documentation about the VGAX library class
extern byte vgaxfb[VGAX_HEIGHT*VGAX_BWIDTH];

//clock replacement. this is increment in the VSYNC interrupt, so run at 60Hz
extern unsigned vtimer;
extern unsigned long vtimer;

//VGAX class. This is a static class. Multiple instances will not work
class VGAX {
Expand Down Expand Up @@ -224,7 +224,7 @@ class VGAX {
* millis()
* return the number of milliseconds ellapsed
*/
static inline unsigned millis() {
static inline unsigned long millis() {
return vtimer*16;
}
/*
Expand Down
2 changes: 1 addition & 1 deletion examples/RandomPixels/RandomPixels.ino
Expand Up @@ -9,5 +9,5 @@ void setup() {
void loop() {
static unsigned cnt;
cnt++;
vga.putpixel(rand()%VGAX_WIDTH, rand()%VGAX_HEIGHT, cnt%3);
vga.putpixel(rand()%VGAX_WIDTH, rand()%VGAX_HEIGHT, cnt%4);
}

0 comments on commit ed760dd

Please sign in to comment.