-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new file: LEGOPowerFunctions/examples/bulldozer/applet/HardwareSeria…
…l.cpp.o new file: LEGOPowerFunctions/examples/bulldozer/applet/Print.cpp.o new file: LEGOPowerFunctions/examples/bulldozer/applet/WInterrupts.c.o new file: LEGOPowerFunctions/examples/bulldozer/applet/WMath.cpp.o new file: LEGOPowerFunctions/examples/bulldozer/applet/bulldozer.cpp new file: LEGOPowerFunctions/examples/bulldozer/applet/bulldozer.cpp.o new file: LEGOPowerFunctions/examples/bulldozer/applet/bulldozer.eep new file: LEGOPowerFunctions/examples/bulldozer/applet/bulldozer.elf new file: LEGOPowerFunctions/examples/bulldozer/applet/bulldozer.hex new file: LEGOPowerFunctions/examples/bulldozer/applet/bulldozer.pde new file: LEGOPowerFunctions/examples/bulldozer/applet/core.a new file: LEGOPowerFunctions/examples/bulldozer/applet/pins_arduino.c.o new file: LEGOPowerFunctions/examples/bulldozer/applet/wiring.c.o new file: LEGOPowerFunctions/examples/bulldozer/applet/wiring_analog.c.o new file: LEGOPowerFunctions/examples/bulldozer/applet/wiring_digital.c.o new file: LEGOPowerFunctions/examples/bulldozer/applet/wiring_pulse.c.o new file: LEGOPowerFunctions/examples/bulldozer/applet/wiring_serial.c.o new file: LEGOPowerFunctions/examples/bulldozer/applet/wiring_shift.c.o new file: LEGOPowerFunctions/examples/bulldozer/bulldozer.pde new file: LEGOPowerFunctions/keywords.txt new file: LEGOPowerFunctions/legopowerfunctions.cpp new file: LEGOPowerFunctions/legopowerfunctions.h new file: LEGOPowerFunctions/legopowerfunctions.h~ new file: LEGOPowerFunctions/legopowerfunctions.o new file: sketch_apr16a/.DS_Store new file: sketch_apr16a/sketch_apr16a.ino
- Loading branch information
Showing
26 changed files
with
754 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
35 changes: 35 additions & 0 deletions
35
LEGOPowerFunctions/examples/bulldozer/applet/bulldozer.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
example for the 8275 bulldozer | ||
*/ | ||
#include <legopowerfunctions.h> | ||
|
||
// IR led on port 13 | ||
#include "WProgram.h" | ||
void setup(); | ||
void loop(); | ||
LEGOPowerFunctions lego(9); | ||
|
||
|
||
void setup() | ||
{ | ||
} | ||
|
||
void loop() | ||
{ | ||
lego.ComboMode(BLUE_FLT, RED_FWD, CH1); | ||
//delay(100); | ||
} | ||
|
||
int main(void) | ||
{ | ||
init(); | ||
|
||
setup(); | ||
|
||
for (;;) | ||
loop(); | ||
|
||
return 0; | ||
} | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
:00000001FF |
Binary file not shown.
105 changes: 105 additions & 0 deletions
105
LEGOPowerFunctions/examples/bulldozer/applet/bulldozer.hex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
:100000000C9462000C948A000C948A000C948A0070 | ||
:100010000C948A000C948A000C948A000C948A0038 | ||
:100020000C948A000C948A000C948A000C948A0028 | ||
:100030000C948A000C948A000C948A000C948A0018 | ||
:100040000C94C2010C948A000C948A000C948A00CF | ||
:100050000C948A000C948A000C948A000C948A00F8 | ||
:100060000C948A000C948A000000000024002700F1 | ||
:100070002A0000000000250028002B0000000000DE | ||
:1000800023002600290004040404040404040202DA | ||
:100090000202020203030303030301020408102007 | ||
:1000A0004080010204081020010204081020000012 | ||
:1000B0000007000201000003040600000000000029 | ||
:1000C0000000AB0111241FBECFEFD4E0DEBFCDBFD7 | ||
:1000D00011E0A0E0B1E0E0E8F6E002C005900D928A | ||
:1000E000A030B107D9F711E0A0E0B1E001C01D9246 | ||
:1000F000A531B107E1F710E0C4ECD0E004C02297CD | ||
:10010000FE010E943A03C23CD107C9F70E94BD011B | ||
:100110000C943E030C9400004115510519F484E041 | ||
:10012000861B11C0CA010197029710F485E00BC02D | ||
:10013000435050404230510510F080E004C06D5FE4 | ||
:100140007F4F862F880F682F70E084E0660F771F3F | ||
:100150008A95E1F7882777FD8095982F0E943202D3 | ||
:100160000895FF920F931F93CF93DF93F62ECA014A | ||
:100170006AE170E00E941103EB0100E010E012C0A0 | ||
:100180008F2D61E00E94C4028DE090E00E945C022D | ||
:100190008F2D60E00E94C4028DE090E00E945C021E | ||
:1001A0000F5F1F4FC017D1075CF7DF91CF911F91F1 | ||
:1001B0000F91FF90089560910001709101014CE949 | ||
:1001C00050E00E94B10086EF93E00E945C02089527 | ||
:1001D000AF92BF92CF92DF92EF92FF920F931F9355 | ||
:1001E000CF93DF936C017B015A01809102019091C2 | ||
:1001F000030168177907A1F480910401909105012A | ||
:100200004817590769F480910601909107018430DD | ||
:10021000910594F4019690930701809306010CC018 | ||
:10022000F0920301E0920201B0920501A092040154 | ||
:100230001092070110920601C6010E94DB0000E83F | ||
:1002400010E0C0E0D0E06091000170910101C601B2 | ||
:100250004CE950E00E94B100C8018E219F21892BFA | ||
:1002600019F082E292E002C084E091E00E945C0218 | ||
:10027000159507952196C830D10529F700E810E0BB | ||
:10028000C0E0D0E06091000170910101C6014CE92D | ||
:1002900050E00E94B100C8018A219B21892B19F0EE | ||
:1002A00082E292E002C084E091E00E945C02159537 | ||
:1002B00007952196C830D10529F7C6010E94DB00B9 | ||
:1002C0006AE070E080E090E00E943202DF91CF911E | ||
:1002D0001F910F91FF90EF90DF90CF90BF90AF9064 | ||
:1002E0000895CF92DF92EF92FF920F931F936C01CC | ||
:1002F0008A017901062B172B4091060150910701C5 | ||
:10030000B9010E948C00B701F4E0660F771FFA95DF | ||
:10031000E1F76160E026F1268EE090E08E259F25D2 | ||
:10032000E4E0000F111FEA95E1F7082B192BC60135 | ||
:10033000A8010E94E8001F910F91FF90EF90DF90BD | ||
:10034000CF900895862F609300017093010161E0C2 | ||
:100350000E94A402089588E091E069E070E00E94A4 | ||
:10036000A201089588E091E060E070E041E050E093 | ||
:1003700020E030E00E94710108950E946A020E940C | ||
:10038000B201FDCF1F920F920FB60F9211242F933F | ||
:100390008F939F93AF93BF938091090190910A012E | ||
:1003A000A0910B01B0910C010196A11DB11D80938C | ||
:1003B000090190930A01A0930B01B0930C01809165 | ||
:1003C0000D0190910E01A0910F01B091100180508C | ||
:1003D000904CAF4FBF4F80930D0190930E01A093AF | ||
:1003E0000F01B093100127C080910D0190910E0173 | ||
:1003F000A0910F01B091100180589E43A040B040E1 | ||
:1004000080930D0190930E01A0930F01B093100102 | ||
:100410008091110190911201A0911301B0911401EA | ||
:100420000196A11DB11D8093110190931201A0931B | ||
:100430001301B093140180910D0190910E01A091D0 | ||
:100440000F01B091100181589E43A040B04060F66A | ||
:10045000BF91AF919F918F912F910F900FBE0F90F1 | ||
:100460001F901895EF92FF920F931F937B018C01C1 | ||
:100470008FB7F894409111015091120160911301CE | ||
:10048000709114018FBF2FB7F89480911101909152 | ||
:100490001201A0911301B09114012FBF841B950B81 | ||
:1004A000A60BB70BE816F9060A071B0760F71F91A2 | ||
:1004B0000F91FF90EF900895019759F0FC01EE0F16 | ||
:1004C000FF1FEE0FFF1F32978FB7F8943197F1F7A8 | ||
:1004D0008FBF0895789484B5826084BD84B58160AF | ||
:1004E00084BD85B5826085BD85B5816085BDEEE63C | ||
:1004F000F0E0808181608083E1E8F0E080818260CB | ||
:100500008083808181608083E0E8F0E08081816089 | ||
:100510008083E1EBF0E0808184608083E0EBF0E0B9 | ||
:10052000808181608083EAE7F0E08081846080835D | ||
:100530008081826080838081816080838081806807 | ||
:1005400080831092C1000895282F30E0C90186569B | ||
:100550009F4FFC0194912A573F4FF90184918823C2 | ||
:1005600091F0E82FF0E0EE0FFF1FE859FF4FA59143 | ||
:10057000B491662329F48C91909589238C930895E6 | ||
:100580008C91892B8C930895482F50E0CA01825595 | ||
:100590009F4FFC012491CA0186569F4FFC01949104 | ||
:1005A0004A575F4FFA0134913323D1F1222331F1BD | ||
:1005B000233021F4809180008F7705C0243031F4FE | ||
:1005C000809180008F7D8093800018C0213019F4C5 | ||
:1005D00084B58F7704C0223021F484B58F7D84BD2B | ||
:1005E0000DC0263021F48091B0008F7705C02730F0 | ||
:1005F00029F48091B0008F7D8093B000E32FF0E06C | ||
:10060000EE0FFF1FEE58FF4FA591B491662329F41A | ||
:100610008C91909589238C9308958C91892B8C9340 | ||
:10062000089597FB092E07260AD077FD04D00CD039 | ||
:1006300006D000201AF4709561957F4F0895F6F763 | ||
:10064000909581959F4F0895AA1BBB1B51E107C050 | ||
:10065000AA1FBB1FA617B70710F0A61BB70B881F52 | ||
:10066000991F5A95A9F780959095BC01CD010895E1 | ||
:10067000EE0FFF1F0590F491E02D0994F894FFCF41 | ||
:00000001FF |
44 changes: 44 additions & 0 deletions
44
LEGOPowerFunctions/examples/bulldozer/applet/bulldozer.pde
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
example for the 8275 bulldozer | ||
*/ | ||
#include <legopowerfunctions.h> | ||
|
||
// IR led on port 13 | ||
LEGOPowerFunctions lego(13); | ||
|
||
int timeout, count; | ||
|
||
void setup() | ||
{ | ||
} | ||
|
||
void loop() | ||
{ | ||
timeout = 5; // 5 secs | ||
count = 0; | ||
while(timeout > 0) | ||
{ | ||
lego.ComboPWM(PWM_REV4, PWM_FWD4, CH1); // 50% speed | ||
delay(100); | ||
if (count++ == 10) | ||
{ | ||
timeout--; | ||
count = 0; | ||
} | ||
} | ||
lego.ComboPWM(PWM_FLT, PWM_FLT, CH1); // stop | ||
delay(1000); | ||
timeout = 3; // 5 secs | ||
count = 0; | ||
while(timeout > 0) | ||
{ | ||
lego.ComboMode(RED_FWD, BLUE_FWD, CH1); // turn | ||
delay(100); | ||
if (count++ == 10) | ||
{ | ||
timeout--; | ||
count = 0; | ||
} | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
example for the 8275 bulldozer | ||
*/ | ||
#include <legopowerfunctions.h> | ||
|
||
// IR led on port 13 | ||
LEGOPowerFunctions lego(13); | ||
|
||
int timeout, count; | ||
|
||
void setup() | ||
{ | ||
} | ||
|
||
void loop() | ||
{ | ||
timeout = 5; // 5 secs | ||
count = 0; | ||
while(timeout > 0) | ||
{ | ||
lego.ComboPWM(PWM_REV4, PWM_FWD4, CH1); // 50% speed | ||
delay(100); | ||
if (count++ == 10) | ||
{ | ||
timeout--; | ||
count = 0; | ||
} | ||
} | ||
lego.ComboPWM(PWM_FLT, PWM_FLT, CH1); // stop | ||
delay(1000); | ||
timeout = 3; // 5 secs | ||
count = 0; | ||
while(timeout > 0) | ||
{ | ||
lego.ComboMode(RED_FWD, BLUE_FWD, CH1); // turn | ||
delay(100); | ||
if (count++ == 10) | ||
{ | ||
timeout--; | ||
count = 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
####################################### | ||
# Syntax Coloring Map For PowerFunctions Library | ||
####################################### | ||
|
||
####################################### | ||
# Datatypes (KEYWORD1) | ||
####################################### | ||
|
||
LEGOPowerFunctions KEYWORD1 | ||
|
||
####################################### | ||
# Methods and Functions (KEYWORD2) | ||
####################################### | ||
|
||
LEGOPowerFunctions KEYWORD2 | ||
SingleOutput KEYWORD2 | ||
SinglePin KEYWORD2 | ||
ComboMode KEYWORD2 | ||
ComboPWM KEYWORD2 | ||
|
||
####################################### | ||
# Constants (LITERAL1) | ||
####################################### | ||
|
||
|
||
CONTINUOUS LITERAL1 | ||
TIMEOUT LITERAL1 | ||
PWM_FLT LITERAL1 | ||
PWM LITERAL1 | ||
CST LITERAL1 | ||
PWM_FWD1 LITERAL1 | ||
PWM_FWD2 LITERAL1 | ||
PWM_FWD3 LITERAL1 | ||
PWM_FWD4 LITERAL1 | ||
PWM_FWD5 LITERAL1 | ||
PWM_FWD6 LITERAL1 | ||
PWM_FWD7 LITERAL1 | ||
PWM_BRK LITERAL1 | ||
PWM_REV7 LITERAL1 | ||
PWM_REV6 LITERAL1 | ||
PWM_REV5 LITERAL1 | ||
PWM_REV4 LITERAL1 | ||
PWM_REV3 LITERAL1 | ||
PWM_REV2 LITERAL1 | ||
PWM_REV1 LITERAL1 | ||
RED_FLT LITERAL1 | ||
RED_FWD LITERAL1 | ||
RED_REV LITERAL1 | ||
RED_BRK LITERAL1 | ||
BLUE_FLT LITERAL1 | ||
BLUE_FWD LITERAL1 | ||
BLUE_REV LITERAL1 | ||
BLUE_BRK LITERAL1 | ||
CH1 LITERAL1 | ||
CH2 LITERAL1 | ||
CH3 LITERAL1 | ||
CH4 LITERAL1 | ||
RED LITERAL1 | ||
BLUE LITERAL1 | ||
NO_CHANGE LITERAL1 | ||
CLEAR LITERAL1 | ||
SET LITERAL1 | ||
TOGGLE LITERAL1 | ||
PIN_C1 LITERAL1 | ||
PIN_C2 LITERAL1 | ||
CL_C1_CL_C2 LITERAL1 | ||
ST_C1_CL_C2 LITERAL1 | ||
CL_C1_ST_C2 LITERAL1 | ||
ST_C1_ST_C2 LITERAL1 | ||
INC_PWM LITERAL1 | ||
DEC_PWM LITERAL1 | ||
FULL_FWD LITERAL1 | ||
FULL_REV LITERAL1 | ||
TOG_FWD_REV LITERAL1 |
Oops, something went wrong.