This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
users:dagnall53:port_setup [2019/02/14 19:14] dagnall53 [Port Setup] |
users:dagnall53:port_setup [2019/03/17 19:20] (current) dagnall53 |
||
---|---|---|---|
Line 1: | Line 1: | ||
[[:users:Dagnall53:Description|Back to WiRocs Description]] | [[:users:Dagnall53:Description|Back to WiRocs Description]] | ||
- | ====== Port Setup ====== | + | ====== Compiler Setup ====== |
- | + | ||
- | The Code to compile the Node includes a lot of #Define statements that allow the code to be modified for various uses. This allows the node to be set up as a Static / or Mobile(LOCO) Node, and with or without Audio. | + | For most users, it is expected that they will want the code to be used with the "noDac" audio output, and set up as a "stationary" node. The Binaries in the code repository are compiled using these (default) directives. |
+ | |||
+ | ====== #Define Compile Options ====== | ||
- | To select "Mobile" settings, use the "#define _LOCO_SERVO_Driven_Port 1". (This example sets D1 as the RC Servo drive, and also sets D2 and D5 as front and back light drivers). | + | To allow for maximum flexibility, and avoid having branches that are incompatible, the Code to compile the WiRocS Node includes a lot of #Define statements that allow the code to be modified for various uses. This allows the node to be set up as a Static / or Mobile(LOCO) Node, and with or without Audio. |
+ | To select "Mobile" settings, use the "#define _LOCO_SERVO_Driven_Port 1". (This example sets D1 as the RC Servo drive, and also s | ||
To use a Mobile (LOCO) node with a "PWM" drive rather than Servo drive, use "#define _LocoPWMDirPort 3 " (If you do this then D3 (and D1 set above) are used to drive the PWM drive device). Currently the code assumes use of a NodeMCU motor board, but there is an option to use other drivers. | To use a Mobile (LOCO) node with a "PWM" drive rather than Servo drive, use "#define _LocoPWMDirPort 3 " (If you do this then D3 (and D1 set above) are used to drive the PWM drive device). Currently the code assumes use of a NodeMCU motor board, but there is an option to use other drivers. | ||