il suffit dallumer une diode 1/10 ème du temps:
exemple:
#include <time.h>
/*
Blink
Turns on an LED on for one second, then off for one second, repeatedly.
This example code is in the public domain.
*/
// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;
static uint32_t timer=0;
static uint32_t fast=0;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
int on=0;
int onfast=0;
uint32_t fon=0;
// the loop routine runs over and over again forever:
void loop() {
if (on && millis() > fast) {
if (fon==1)digitalWrite(led,LOW);
if (fon==10){ fon=0;digitalWrite(led,HIGH);}
fast = millis() + 1;
fon=fon+1;
}
if (millis() > timer) {
on=!on;
fon=0;
timer = millis() + 5000;
digitalWrite(led, on);
}
}