SBDBTを用いてDS3(PS3コントローラ)を扱うライブラリ
Dependents: PIDcontrol_4 go_robo2022kaisyu_no 2022_Ateam_MOTORprogram tape_LED ... more
Revision 2:9fd7393a3023, committed 2021-11-11
- Comitter:
- m2130
- Date:
- Thu Nov 11 09:07:47 2021 +0000
- Parent:
- 1:f9a705b06d46
- Commit message:
- SBDBT;
Changed in this revision
sbdbt.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f9a705b06d46 -r 9fd7393a3023 sbdbt.cpp --- a/sbdbt.cpp Wed Nov 10 14:11:27 2021 +0000 +++ b/sbdbt.cpp Thu Nov 11 09:07:47 2021 +0000 @@ -11,7 +11,7 @@ pc = new Serial(USBTX, USBRX); dev = new Serial(TX, RX); dev -> baud(9600); - dev -> attach(this,&sbdbt::get,Serial::RxIrq); + dev -> attach(callback(this,&sbdbt::get),Serial::RxIrq); } sbdbt::sbdbt(PinName TX, PinName RX, int baud){ @@ -25,7 +25,7 @@ dev = new Serial(TX, RX); dev -> baud(9600); pc -> baud(baud); - dev -> attach(this,&sbdbt::get,Serial::RxIrq); + dev -> attach(callback(this,&sbdbt::get),Serial::RxIrq); } void sbdbt::get(){