CloudX LED Chaser CloudX

  • img
Project Details

This is a beginner project that shows how to design an led chaser using PORTs. The four LEDs are connected to port1 which are pin1 to pin4.

 

Circuit Diagram

Untitled Sketch_bb.jpg

 

 

Code

// Add M633 at select device menu to your project 

setup(){
//setup here
portMode(1, 0B00000000);
portWrite(1, 0B00000000);

loop(){
//Program here
portWrite(1,0B00000001);
delay(500);
portWrite(1,0B00000010);
delay(500);
portWrite(1,0B00000100);
delay(500);
portWrite(1,0B00001000);
delay(500);
}
}

 

Video

 

 

 

Share this with friends