Advertisement
claudiusmarius

Claudiusmariusblink01-ATtiny85

Feb 28th, 2021
450
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.29 KB | None | 0 0
  1. //****************************************************************************************************************************************************
  2.   //+++++++++++++++++ Programme de test ATtiny85 permettant de vérifier le bon fonctionnement du Programmateurr ATtiny Claudiusmarius ++++++++++++++++++
  3.   //+++++++++++++++++++++ Ce code peut être testé sur le programmateur (position basse du support à insertion nulle de gauche ++++++++++++++++++++++++++
  4.   //=========================================================            Claude DUFOURMONT             =================================================
  5.   //----------------------------------   YouTube :      https://www.youtube.com/channel/UCvr9eb05lJow6N7m3SKqvNw    ------------------------------------
  6.   //--------------------------------------------------------------- claude.dufourmont@laposte.net ------------------------------------------------------  
  7.  
  8.   int LED = 3;
  9.  
  10.   void setup ()
  11.   {
  12.   pinMode (LED, OUTPUT);
  13.   }
  14.  
  15.   void loop ()
  16.   {
  17.   for (int i = 0 ; i < 10 ; i++)
  18.   {
  19.   digitalWrite (LED, HIGH);
  20.   delay (1000);
  21.   digitalWrite (LED, LOW);
  22.   delay (1000);
  23.   }
  24.  
  25.   delay(50);
  26.  
  27.   for (int i = 0; i< 50; i++)
  28.   {
  29.   digitalWrite (LED, HIGH);
  30.   delay (100);
  31.   digitalWrite (LED, LOW);
  32.   delay (100);
  33.   }
  34.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement