http://mbed.org/users/shintamainjp/notebook/starboard_expbrd-one_ex1_en/
Dependencies: mbed RemoteIR SuperTweet ConfigFile EthernetNetIf
Revision 1:c4cfd136f9c7, committed 2010-11-04
- Comitter:
- shintamainjp
- Date:
- Thu Nov 04 14:33:07 2010 +0000
- Parent:
- 0:db299c5a18ba
- Commit message:
- Added license terms.
Changed in this revision
diff -r db299c5a18ba -r c4cfd136f9c7 main.cpp --- a/main.cpp Fri Oct 29 23:17:01 2010 +0000 +++ b/main.cpp Thu Nov 04 14:33:07 2010 +0000 @@ -1,14 +1,32 @@ /** - * StarBoard Orange Expansion Board - Example application No.1 (Version 0.0.1) + * ============================================================================= + * Expansion Board One - Example application No.1 (Version 0.0.1) * http://mbed.org/users/shintamainjp/notebook/starboard_expbrd-one_ex1_en/ + * ============================================================================= + * Copyright (c) 2010 Shinichiro Nakamura (CuBeatSystems) * - * Copyright (C) 2010 Shinichiro Nakamura (CuBeatSystems) - * http://shinta.main.jp/ + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * ============================================================================= */ #include "mbed.h" #include "TextLCD.h" -#include "TextLCD_SR4.h" #include "EthernetNetIf.h" #include "SuperTweetV1XML.h" #include "ConfigFile.h" @@ -23,7 +41,7 @@ /* * Definitions for a configuration file. */ -#define CONFIG_FILENAME "/local/SETUP.CFG" +#define CONFIG_FILENAME "/local/SBOE1.CFG" /* * Variables. @@ -52,9 +70,8 @@ /* * Classes. */ +LocalFileSystem localfs("local"); TextLCD lcd(p24, p26, p27, p28, p29, p30); -// TextLCD_SR4 lcd(p29, p30, p28, p27); -LocalFileSystem fs_local("local"); EthernetNetIf netif; MyHomeLight room_light(p21); StreamFilter sf("<text>", "</text>");
diff -r db299c5a18ba -r c4cfd136f9c7 mylib/MyHomeLight/MyHomeLight.cpp --- a/mylib/MyHomeLight/MyHomeLight.cpp Fri Oct 29 23:17:01 2010 +0000 +++ b/mylib/MyHomeLight/MyHomeLight.cpp Thu Nov 04 14:33:07 2010 +0000 @@ -1,3 +1,30 @@ +/** + * ============================================================================= + * My home light controller. + * http://mbed.org/users/shintamainjp/notebook/starboard_expbrd-one_ex1_en/ + * ============================================================================= + * Copyright (c) 2010 Shinichiro Nakamura (CuBeatSystems) + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * ============================================================================= + */ + #include "MyHomeLight.h" #include "RemoteIR.h"
diff -r db299c5a18ba -r c4cfd136f9c7 mylib/MyHomeLight/MyHomeLight.h --- a/mylib/MyHomeLight/MyHomeLight.h Fri Oct 29 23:17:01 2010 +0000 +++ b/mylib/MyHomeLight/MyHomeLight.h Thu Nov 04 14:33:07 2010 +0000 @@ -1,3 +1,30 @@ +/** + * ============================================================================= + * My home light controller. + * http://mbed.org/users/shintamainjp/notebook/starboard_expbrd-one_ex1_en/ + * ============================================================================= + * Copyright (c) 2010 Shinichiro Nakamura (CuBeatSystems) + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * ============================================================================= + */ + #include "mbed.h" #include "TransmitterIR.h"
diff -r db299c5a18ba -r c4cfd136f9c7 mylib/StreamFilter/StreamFilter.cpp --- a/mylib/StreamFilter/StreamFilter.cpp Fri Oct 29 23:17:01 2010 +0000 +++ b/mylib/StreamFilter/StreamFilter.cpp Thu Nov 04 14:33:07 2010 +0000 @@ -1,3 +1,29 @@ +/** + * ============================================================================= + * Stream filter for Twitter. + * http://mbed.org/users/shintamainjp/notebook/starboard_expbrd-one_ex1_en/ + * ============================================================================= + * Copyright (c) 2010 Shinichiro Nakamura (CuBeatSystems) + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * ============================================================================= + */ #include "StreamFilter.h"
diff -r db299c5a18ba -r c4cfd136f9c7 mylib/StreamFilter/StreamFilter.h --- a/mylib/StreamFilter/StreamFilter.h Fri Oct 29 23:17:01 2010 +0000 +++ b/mylib/StreamFilter/StreamFilter.h Thu Nov 04 14:33:07 2010 +0000 @@ -1,3 +1,29 @@ +/** + * ============================================================================= + * Stream filter for Twitter. + * http://mbed.org/users/shintamainjp/notebook/starboard_expbrd-one_ex1_en/ + * ============================================================================= + * Copyright (c) 2010 Shinichiro Nakamura (CuBeatSystems) + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * ============================================================================= + */ #include "mbed.h"
diff -r db299c5a18ba -r c4cfd136f9c7 mylib/TextLCD_SR4.lib --- a/mylib/TextLCD_SR4.lib Fri Oct 29 23:17:01 2010 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/shintamainjp/code/TextLCD_SR4/#e768257aba09
diff -r db299c5a18ba -r c4cfd136f9c7 mylib/appconf/appconf.cpp --- a/mylib/appconf/appconf.cpp Fri Oct 29 23:17:01 2010 +0000 +++ b/mylib/appconf/appconf.cpp Thu Nov 04 14:33:07 2010 +0000 @@ -1,3 +1,30 @@ +/** + * ============================================================================= + * Application configuration for 'Expansion Board One' example no.1 + * http://mbed.org/users/shintamainjp/notebook/starboard_expbrd-one_ex1_en/ + * ============================================================================= + * Copyright (c) 2010 Shinichiro Nakamura (CuBeatSystems) + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * ============================================================================= + */ + #include "appconf.h" #include "ConfigFile.h"
diff -r db299c5a18ba -r c4cfd136f9c7 mylib/appconf/appconf.h --- a/mylib/appconf/appconf.h Fri Oct 29 23:17:01 2010 +0000 +++ b/mylib/appconf/appconf.h Thu Nov 04 14:33:07 2010 +0000 @@ -1,3 +1,29 @@ +/** + * ============================================================================= + * Application configuration for 'Expansion Board One' example no.1 + * http://mbed.org/users/shintamainjp/notebook/starboard_expbrd-one_ex1_en/ + * ============================================================================= + * Copyright (c) 2010 Shinichiro Nakamura (CuBeatSystems) + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * ============================================================================= + */ typedef struct { char account[64];