void Graphics::drawPixel( int16_t x, int16_t y )
void Graphics::drawPixel( int16_t x, int16_t y, Color or ColorIndex color )
Graphics::drawPixel will draw a pixel :
none
#include <Gamebuino-Meta.h>void setup() { gb.begin(); }
void loop() { while(!gb.update()); // update the screen gb.display.clear(); // clear the sceen gb.lights.clear(); // clear the lights = off
// turn only the top-left pixel of the lights read gb.lights.drawPixel(0, 0, RED);
// set a pixel of the display green gb.display.setColor(GREEN); // select the GREEN pencil gb.display.drawPixel(42, 42); }