A simple Tron type game against the uno.It uses a function written by Evan Ven to see if a pixel at a particlar x,y position is lit. https://youtu.be/h6dbkNzyfPY ;UNO Tron game on 1" GLCD by Stan Cartwright.Function ReadPixel_SSD1306 written by Evan Venn. ;Player starts on screen right and initially moves left ;CPU starts on screen left and initially moves right ;4 buttons for up/down/left/right from VSS to UNO D7 to D4 and pull-down resistors ; ----- Configuration #chip mega328p,16 #option explicit...
Just read the news on mmbasic forum. Sad for all who actually knew him.
I use mmbasic with rpi 2350 pico 2. what gcbasic was compared to picaxe is what mmbasic is to gcbasic. sorry but 8bit can do a lot but not rpi 32bit dual core... same price as arduino..£4
remember ssd1309 oscilloscope xor mode to erase graphics by redrawing them?
durr. can't you mask the bit in a byte. dunno , long time since using gcb :)
an old example ;328p nano controlling two 28BYJ-48 Stepper Motors using interrupt chip mega328p,16 include <mcp23017.h></mcp23017.h> option Explicit #define I2C_MODE Master #define I2C_DATA PORTC.4 #define I2C_CLOCK PORTC.5 #define I2C_DISABLE_INTERRUPTS ON 'Optionally, you can reduce the I2C timings. #define I2C_BIT_DELAY 0 us #define I2C_CLOCK_DELAY 1 us #define I2C_END_DELAY 0 us define MCP23017_addr 0x4e ;#define MCP23017_IODIRA 0; make porta output MCP23017_sendbyte (MCP23017_addr,MCP23017_IODIRA,0)...
an old example
It is easy to open a demo file, alter it then test it, to then realise you have saved the altered demo file when it should have been saved under a different name and not in the demos folder. Well I've done that many times, oops.