Skip to content

BCUZRobotics/Custom-Electronics-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom Electronics Example

This is example code for Custom Electronics Communication The code for the Arduino/Teensy is located in \Arduino Code\TeensyCode\TeensyCode.ino The rest is the PROS Code for PROS 3.2.1

To setup your PROS Project to for custom electronics communication you need to

  1. Setup the main.h file
  • Include the pros/apix.h
  • Include okapi if using okapi
  • Use namespace of choice
  • Add cpp includes for <iostream>, <string>, <sstream>
  • These are useful for receiving numbers from the Custom Electronics
  1. Set up initialize
  • Define the serial ports
  • Flush the ports
  • Set the Baud Rate
  1. Start Communicating
  • Send with write_byte
  • Read with read_byte

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published