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.
Fork of 2015robot_main by
Diff: communicate.h
- Revision:
- 14:a99f81878336
- Parent:
- 13:87794ce49b50
--- a/communicate.h Wed Sep 16 00:47:46 2015 +0000 +++ b/communicate.h Wed Sep 16 08:11:06 2015 +0000 @@ -12,21 +12,34 @@ /***Get state ps3con.***/ inline void SBDBT_interrupt(); inline void initializeSBDBT(); +inline void data_clear(); +inline void data_check(); Serial SBDBT(SBDBT_TX, SBDBT_RX); #define ps3_start 0x80 -extern short toggle = 0; -extern short edge_circle = 0; -extern short edge_triangle = 0; -extern short edge_r1 = 0; -extern short edge_l1 = 0; -extern short edge_l_up = 0; -extern short edge_l_down = 0; -extern short edge_r_up = 0; -extern short edge_r_down = 0; -extern short edge_right = 0; -extern short edge_left = 0; -extern short edge_up = 0; -short square=0,triangle=0,circle=0,cross=0,up=0,down=0,right=0,left=0,l1=0,l2=0,r1=0,r2=0; +short toggle = 0; +short edge_circle = 0; +short edge_triangle = 0; +short edge_r1 = 0; +short edge_l1 = 0; +short edge_l_up = 0; +short edge_l_down = 0; +short edge_r_up = 0; +short edge_r_down = 0; +short edge_right = 0; +short edge_left = 0; +short edge_up = 0; +short square = 0; +short triangle = 0; +short circle = 0; +short cross = 0; +short up = 0; +short down = 0; +short right = 0; +short left = 0; +short l1 = 0; +short l2 = 0; +short r1 = 0; +short r2 = 0; signed int analog_lx=0,analog_ly=0,analog_rx=0,analog_ry=0; int ps3_data[7]; int count=0;