Skip to content
Snippets Groups Projects
Commit 8dffc714 authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Vorbereitung 19.4.2023

parent d2be47e5
No related branches found
No related tags found
No related merge requests found
Showing
with 43 additions and 0 deletions
20230315/800px-ArduinoUnoSMD.jpg

90.4 KiB

../common/800px-ArduinoUnoSMD.jpg
\ No newline at end of file
20230315/ArduinoUnoSMD.jpg

3.34 MiB

common//ArduinoUnoSMD.jpg
\ No newline at end of file
20230321/800px-ArduinoUnoSMD.jpg

90.4 KiB

../common/800px-ArduinoUnoSMD.jpg
\ No newline at end of file
20230321/ArduinoUnoSMD.jpg

3.34 MiB

../common/ArduinoUnoSMD.jpg
\ No newline at end of file
20230322/800px-ArduinoUnoSMD.jpg

90.4 KiB

../common/800px-ArduinoUnoSMD.jpg
\ No newline at end of file
20230322/ArduinoUnoSMD.jpg

3.34 MiB

../common/ArduinoUnoSMD.jpg
\ No newline at end of file
../common/ArduinoUnoSMD.jpg
\ No newline at end of file
%.elf: %.c
avr-gcc -Wall -Os -mmcu=atmega328p $< -o $@
%.hex: %.elf
avr-objcopy -O ihex $< $@
download:
./download.sh
../common/astabile-kippstufe.png
\ No newline at end of file
#include <avr/io.h>
#define F_CPU 16000000
#include <util/delay.h>
int main (void)
{
DDRB = 0xff; // alle 8 Ausgänge als Outputs verwenden ("pinMode" für alle 8)
PORTB = 0x20; // Bit Nr. 5 auf 1 setzen, alle anderen auf 0 ("digitalWrite" für alle 8)
while (1)
{
_delay_ms (250);
PORTB = 0x00;
_delay_ms (250);
PORTB = 0x20;
}
return 0;
}
#include <stdio.h>
int main (void)
{
int a = 3;
int b = 7;
int c = a + b;
printf ("c = %d\n", c);
return 0;
}
port=$(ls -rt /dev/ttyACM* | tail -1)
echo avrdude -P $port -c arduino -p m328p -U flash:w:$(ls -rt *.hex | tail -1)
avrdude -P $port -c arduino -p m328p -U flash:w:$(ls -rt *.hex | tail -1) 2>/dev/null
../common/logo-hochschule-bochum-cvh-text-v2.pdf
\ No newline at end of file
../common/logo-hochschule-bochum.pdf
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment