Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 /** 00002 * Jksoft Blue mbed Board 00003 * 00004 * Serial LED test program 00005 * 00006 * Copyright (C) 2014 Junichi Katsu (JKSOFT) 00007 */ 00008 #include "mbed.h" 00009 #include "LEDStrip.h" 00010 00011 00012 int main() { 00013 tapeInit(0, 2); // freq( 0:default ) , SerialLED num 00014 00015 while(1) 00016 { 00017 for( int i=0 ; i < 256 ; i++ ) 00018 { 00019 tapeSet(0,i,0,0); // LED No , Red , Green , Blue 00020 tapeSet(1,0,i,0); // LED No , Red , Green , Blue 00021 tapeSend(); // Send to LED 00022 wait_ms(20); 00023 } 00024 for( int i=255 ; i > 0 ; i-- ) 00025 { 00026 tapeSet(0,i,0,0); // LED No , Red , Green , Blue 00027 tapeSet(1,0,i,0); // LED No , Red , Green , Blue 00028 tapeSend(); // Send to led 00029 wait_ms(20); 00030 } 00031 } 00032 }
Generated on Tue Jul 12 2022 17:47:54 by
1.7.2