Digistump Forums
The Digispark => Digispark Pro Support => Topic started by: quteor on January 09, 2015, 07:05:26 am
-
Hi everyone
I recently got my digispark pro and now I am trying to use the 9DOF shield.
As there is no example code in the wiki I was wondering if anyone could help me?
Thanks!
-
This is still pending. Looking to start on it myself.
-
Example now on the wiki: http://digistump.com/wiki/digispark/tutorials/9dof?&#programming
-
IT WORKS! It dumps pretty numbers without labels.
WARNING - Save your work - IT SPEWS NUMBERS TO THE KEYBOARD!!!!
OPEN NOTEPAD and give it the focus before the SKETCH STARTS!!!!!
I just edited the wiki with this added line
DigiKeyboard.delay(1000); // Open Notepad (or similar) and make sure it has the focus
It will immediately spew strings all over your sketch or whatever has the focus, at a rate that perfectly prevents you from helping before you yank the PRO.
And there isn't wait in SETUP before the fun begins
My Win8 machine opened some accessibility app and then the start screen came up and numbers were going in there after my sketch was dumped on.
Thanks, Looks like the perfect app looking for my to be updared serial debugger OLED.
NOTE: I put the 9DOF on my OLED PCB (socketed under) - current sketch with NEW Xled OLED code running give the following:
Sketch uses 11,494 bytes (77%) of program storage space. Maximum is 14,844 bytes.
Global variables use 222 bytes of dynamic memory.
Since it uses Wire I can add serial for 'free'.
-
Back to seeing this after other stuff. Need to understand the numbers to know when they are reading right, for instance Gyro second two sets sitting at zero.
Would like to know how fast I can expect to read data from the 3 portions and get usable data without making it less reliable in the process, or reading it when no chance of new data.
I have one PRO with the 9DOF running to a serial cable now to a second PRO with OLED to display the data. Much easier to move the device and read the screen that is stationary.