# Panneau LED ## Objectif >Afficher l'heure sur le panneau led  ## ### Montage:  >Avec ce montage nous pouvons lier notre arduino avec notre panneau led . Apres on connecte notr'e arduino a notre pc pour lui donner un code ### Code: >#include "SPI.h" #include "DMD419.h" #include "TimerOne.h" #include "Arial_black_16.h"<arial_black_16.h> // you can remove the fonts if unused #include "SystemFont5x7.h" #define DISPLAYS_ACROSS 1 #define DISPLAYS_DOWN 1 /* change these values if you have more than one DMD connected */ DMD419 dmd(DISPLAYS_ACROSS,DISPLAYS_DOWN); void ScanDMD() { dmd.scanDisplayBySPI(); } void setup() { VMA419 V. 02 – 14/12/2017 6 ©Velleman nv Timer1.initialize( 5000 ); /*period in microseconds to call ScanDMD. Anything longer than 5000 (5ms) and you can see flicker.*/ Timer1.attachInterrupt( ScanDMD ); /*attach the Timer1 interrupt to ScanDMD which goes to dmd.scanDisplayBySPI()*/ dmd.clearScreen( true ); /* true is normal (all pixels off), false is negative (all pixels on) */ } # ### Sources: >https://www.velleman.eu/downloads/29/vma419_a4v02.pdf
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up