#include <string.h>
#include "ssd1306.h"
#include "FrameBuffer.h"
using namespace pico_ssd1306 {
i2c_init(i2c1, 1000000); //Use i2c port with baud rate of 1Mhz
//Set pins for I2C operation
gpio_set_function(18, GPIO_FUNC_I2C);
gpio_set_function(19, GPIO_FUNC_I2C);
gpio_pull_up(18);
gpio_pull_up(19);
//Create a new display object
pico_ssd1306::SSD1306 display = pico_ssd1306::SSD1306(i2c1, 0x3D, pico_ssd1306::Size::W128xH64);
//create a vertical line on x: 64 y:0-63
for (int y = 0; y < 64; y++){
display.setPixel(64, y);
}
display.sendBuffer(); //Send buffer to device and show on screen
}