vault backup: 2025-04-09 15:33:16
This commit is contained in:
parent
6d2f849c6e
commit
ff071c6d35
@ -11,11 +11,11 @@ int main(void) {
|
||||
while (1) {
|
||||
// Set PB5 high: LED ON
|
||||
PORTB |= (1 << PB5);
|
||||
_delay_ms(1000); // Delay 1000 milliseconds (1 second)
|
||||
_delay_ms(100); // Delay 1000 milliseconds (1 second)
|
||||
|
||||
// Clear PB5: LED OFF
|
||||
PORTB &= ~(1 << PB5);
|
||||
_delay_ms(1000); // Delay 1000 milliseconds (1 second) }
|
||||
_delay_ms(100); // Delay 1000 milliseconds (1 second) }
|
||||
|
||||
return 0; // Though this line is never reached because of the infinite loop
|
||||
}
|
||||
|
||||
Binary file not shown.
@ -6,8 +6,8 @@
|
||||
:100050000C943E000C943E000C943E000C943E0028
|
||||
:100060000C943E000C943E0011241FBECFEFD8E04C
|
||||
:10007000DEBFCDBF0E9440000C9458000C940000DD
|
||||
:10008000259A2D9A2FEF83ED90E3215080409040E8
|
||||
:10009000E1F700C000002D982FEF83ED90E3215091
|
||||
:10008000259A2D9A2FEF81EE94E0215080409040E8
|
||||
:10009000E1F700C000002D982FEF81EE94E0215091
|
||||
:1000A00080409040E1F700C0000090E080E00895BB
|
||||
:0400B000F894FFCFF2
|
||||
:00000001FF
|
||||
|
||||
@ -9,13 +9,13 @@ SRC = $(TARGET).c
|
||||
|
||||
# Compiler and tools for AVR
|
||||
CC = avr-gcc
|
||||
CFLAGS = -mmcu=$(MCU) -DF_CPU=$(F_CPU) -Os -Wall
|
||||
CFLAGS = -mmcu=$(MCU) -DF_CPU=$(F_CPU) -Os
|
||||
LDFLAGS = -mmcu=$(MCU)
|
||||
OBJCOPY = avr-objcopy
|
||||
|
||||
# avrdude settings: adjust the port (-P) to match your device
|
||||
AVRDUDE = avrdude
|
||||
AVRDUDE_FLAGS = -c arduino -p m328p -P /dev/ttyACM0 -b 115200
|
||||
AVRDUDE_FLAGS = -c arduino -p m328p -P /dev/ttyACM0 -b 115200 -D
|
||||
|
||||
# Output file names
|
||||
ELF = $(TARGET).elf
|
||||
@ -34,7 +34,7 @@ $(HEX): $(ELF)
|
||||
|
||||
# Flash the HEX file to the device with avrdude
|
||||
flash: $(HEX)
|
||||
$(AVRDUDE) $(AVRDUDE_FLAGS) -D -U flash:w:$(HEX):i
|
||||
$(AVRDUDE) $(AVRDUDE_FLAGS) -U flash:w:$(HEX):i
|
||||
|
||||
# Clean up build files
|
||||
clean:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user