![]() Bringing old technology back to life! AVR cheatsheet- create project dir on desktop- open Programmer's Notepad - File > New > Project - name the project and select project dir - click on the text edit window > CTRL-S > locate project dir > "main.c" - sample main.c file
#include <avr/io.h>
//configure CPU and devices
void setup(void) {
}
int main(void) {
setup();
while(1) {
}
}
- right click project > Add Files > locate main.c- download makefile from here, add to project dir - or get the older win10 makefile here - edit makefile variables - for the atmega128 MCU = atmega128 F_CPU = 14745600 - or for arduino mega MCU = atmega2560 F_CPU = 16000000 - make sure main class is set TARGET = main - make sure COM port is correct AVRDUDE_PORT = com3 ![]() - right click project > Add Files > locate Makefile - top menu, Tools > Make All - there's a lot of new bullshit inside project dir - top menu, Tools > Program (launches programmer avrdude) - make sure to get correct COM port and the programmer is connected
#include <avr/io.h>
#include <util/delay.h>
//configure CPU and devices
void setup(void) {
}
int main(void) {
setup();
while(1) {
//just write code here idfk
for(int i = 0; i < 7; i++) {
_delay_ms(250); //delay code
}
}
}
- Dejvoss.BitShift - c# lib for doing all
sorts of crazy shit with bytes.//TODO: port this to C, since apparently the C# lib is pointless since only like 1 assignment is in C# - Hangman-2.zip - og c# program which used a database thing. - SqliteExeTest-2.zip - test c# wrapper for sqlite exe. - Dejvoss.SQLite - unfinished actual c# wrapper for sqlite exe. Things are okay with me these days Got a good job, I got a good office I got a new wife, got a new life And the family's fine LabeTronics is (c) DEJVOSS Productions 2025 |