ATTiny85 5 all chars optimise — ATtiny85 simulation

An interactive ATtiny85 circuit simulation you can run free in your browser on Velxio, by ian7171.

Components

Sketch code

#define F_CPU 8000000UL // Is slower than the CPU but for this is fine

#include <avr/io.h>
#include <avr/pgmspace.h>
#include <util/delay.h>
#include <stdint.h>
#include "functions.h"




int main(void)
{
    usi_i2c_init(); // Set up AT85 SCL and SDA to USI
    oled_init(); // Init the OLED
    oled_clear(); // Clear the screen


    
    oled_cursor(10, 2); // Set the display position on the oled column, page
    print_to_oled(PSTR("IanMcLoughlin")); // PSTR means the fixed text is stored in FLASH rather than consuming SRAM.
    // oled_clear_line(2);
    while (1) { }
    return 0;
}

More projects by ian7171