goble's People
Forkers
fbygg waheo mmmmmnotsure michaelrogers jaganathsr z4ziggy progn mrda ethanyh gabederouen venkatarajasekhar rossclark56 rowebotic guileschool zassen fishtankerva dfrobot tylerferry24 stembotvn bugsy4040 whxjenny ivanchen20 tikyz 60cad kykwong chirinoxi arjunsahd abdelhalim12 panji17-oss kundeg2 matt-felv chearim 417472 dave1982xx cyberghos ajrockattorney aralsh99 aaadur sly74frgoble's Issues
Issue with buttonState[SWITCH_START]
Please take a look at this part of the GoBLE_APP code:
void loop (){
if(Goble.available()){
joystickX = Goble.readJoystickX();
joystickY = Goble.readJoystickY();
Serial.print("joystickX: ");
Serial.print(joystickX);
Serial.print("joystickY: ");
Serial.println(joystickY); // Also check this in the DFRobot page. It shows Serial.println(joystickX);
buttonState[SWITCH_UP] = Goble.readSwitchUp();
buttonState[SWITCH_LEFT] = Goble.readSwitchLeft();
buttonState[SWITCH_RIGHT] = Goble.readSwitchRight();
buttonState[SWITCH_DOWN] = Goble.readSwitchDown();
buttonState[SWITCH_SELECT] = Goble.readSwitchSelect();
// buttonState[SWITCH_START] = Goble.readSwitchStart();
I noticed that SWITCH_START Resets joystickY to 1 and stops updating from the IOS device. As a result "int SpeedY=2*joystickY-256;" sets SpeedY to -254 which is in constant movement. As a workaround I just set the instruction as a comment given that it's not used for the demo.
Humberto.
GoBLE
GoBLE
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.