Commit 070a61d4770d1fbc280e408e64f09ed85567a541
1 parent
966b3fca
ajout retarde arduino et edition txt
Showing
25 changed files
with
66 additions
and
1 deletions
Show diff stats
No preview for this file type
No preview for this file type
arduino_tp/arduino.txt
@@ -10,4 +10,4 @@ crw-rw---- 1 root dialout 166, 0 juin 1 09:56 /dev/ttyACM0 | @@ -10,4 +10,4 @@ crw-rw---- 1 root dialout 166, 0 juin 1 09:56 /dev/ttyACM0 | ||
10 | 10 | ||
11 | le programme d'allumage de led a été réalisé avec succes | 11 | le programme d'allumage de led a été réalisé avec succes |
12 | 12 | ||
13 | - | 13 | +idem pour le programme chenillard |
14 | \ No newline at end of file | 14 | \ No newline at end of file |
No preview for this file type
@@ -0,0 +1,23 @@ | @@ -0,0 +1,23 @@ | ||
1 | + | ||
2 | +#include <avr/io.h> // for the input/output register | ||
3 | +#include <util/delay.h> | ||
4 | +#include <stdio.h> | ||
5 | + | ||
6 | + | ||
7 | +int main(void) | ||
8 | +{ | ||
9 | + | ||
10 | +DDRB = 0xFF; | ||
11 | +PORTB = 0x01; | ||
12 | + | ||
13 | + | ||
14 | +while(1) | ||
15 | + | ||
16 | +{ | ||
17 | +_delay_ms(400); | ||
18 | +PORTB = PORTB*2; | ||
19 | +if(PORTB == 0x40) PORTB = 0x01; | ||
20 | + } | ||
21 | + | ||
22 | +} | ||
23 | + | ||
0 | \ No newline at end of file | 24 | \ No newline at end of file |
@@ -0,0 +1,12 @@ | @@ -0,0 +1,12 @@ | ||
1 | +:100000000C9434000C943E000C943E000C943E0082 | ||
2 | +:100010000C943E000C943E000C943E000C943E0068 | ||
3 | +:100020000C943E000C943E000C943E000C943E0058 | ||
4 | +:100030000C943E000C943E000C943E000C943E0048 | ||
5 | +:100040000C943E000C943E000C943E000C943E0038 | ||
6 | +:100050000C943E000C943E000C943E000C943E0028 | ||
7 | +:100060000C943E000C943E0011241FBECFEFD8E04C | ||
8 | +:10007000DEBFCDBF0E9440000C9456000C940000DF | ||
9 | +:100080008FEF84B981E085B991E02FEF37E883E104 | ||
10 | +:10009000215030408040E1F700C0000085B1880F5A | ||
11 | +:1000A00085B985B1803489F795B9EFCFF894FFCF42 | ||
12 | +:00000001FF |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
liens/liens.txt
@@ -156,3 +156,18 @@ ici on voit qu'un emplacement est alloué pour le tas | @@ -156,3 +156,18 @@ ici on voit qu'un emplacement est alloué pour le tas | ||
156 | 7ffe7fba1000-7ffe7fba3000 r--p 00000000 00:00 0 [vvar] | 156 | 7ffe7fba1000-7ffe7fba3000 r--p 00000000 00:00 0 [vvar] |
157 | ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] | 157 | ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] |
158 | 158 | ||
159 | + | ||
160 | + | ||
161 | + | ||
162 | +///////////////////////////////////////////////////// exercice programme sans main ////////////////////////////////////////////////////// | ||
163 | + | ||
164 | + | ||
165 | +/usr/lib/gcc/x86_64-linux-gnu/4.9/../../../x86_64-linux-gnu/crt1.o : Dans la fonction « _start » : | ||
166 | +/build/glibc-h_iKOs/glibc-2.19/csu/../sysdeps/x86_64/start.S:118 : référence indéfinie vers « main » | ||
167 | +collect2: error: ld returned 1 exit status | ||
168 | + | ||
169 | +////////////////////////////// compilation separee //////////////////////////// | ||
170 | + | ||
171 | +a été effectuée | ||
172 | + | ||
173 | +le sens n'importe pas |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type