First commit

This commit is contained in:
2026-04-08 20:11:20 +02:00
parent 10fe469c10
commit 79f15536a1
861 changed files with 135610 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
#include <hidef.h>
#include "derivative.h"
#include "tempo.h"
int i;
void main(void)
{
/* Internal clock of 8MHz selected. */
ICSC2 = 0x00;
ICSC1 = 0x04;
SOPT1_COPE = 0; /* Disable Watchdog */
PTBDD = 0xFF;
/* include your code here */
for (;;)
{
for (i = 0; i < 8; i++)
{
// tempo(0, 51872); // 500ms
PTBD |= 0b1 << i;
tempo(2, 51872); // 500ms
PTBD = 0;
}
} /* loop forever */
}
void interrupt 7 Depassement_compteur(void)
{
TPMSC = TPMSC & 0b01111111;
}