Here's a version of the @JonnyMac I2C scanner that works with debug window for both P1 and P2.
Again, this needs to be using SpinTools IDE with P1 compile using external tools option rigged for FlexProp.
Seems there's an issue with debug keyboard input in P1 mode, hopefully @ersmith can fix it.
Actually, should make sure I have the latest version of flexprop... (ok, yes have the latest, so that's not it...)
Wow, debug graphics works on P1. This is something. Might be even more useful on P1 that P2?
Again, this needs to be using SpinTools IDE with P1 compile using external tools option rigged for FlexProp.
This is the sawtooth example, copied from Spin2 web documentation.
Note: Probably requires Spin Tools IDE 0.52.1 or later to work...
Here's a more impressive example, if say so myself
Getting the sine wave debug scope example was more of a challenge because Spin2 for P1 doesn't have qsin (since uses P2 only features).
But, and here's the awesome part, was able to use inline assembly and code from P1 manual to fairly easily implement qsin for P1.
Not exactly sure why top graph doesn't move, but doesn't on P2 either...
This one is simpler, but could be very useful...
Have a "grideye" QWIIC camera with 8x8 pixel output. Think can hack this to show that, would be nice...
Doing one last one, the midi example.
Kind of disappointed that it doesn't make sound, thought it would
The issue here is that Spin2 on P1 doesn't have getrnd()
Tried to implement with Chip's Real Random in inline assembly, but it doesn't work, not sure why.
So instead, just used the Spin2 ?? operator to generate a random number.
Think this example might be working correctly, but not really sure...
Here is code for a QWIIC Barometer in Spin2 that works for both P1 and P2.
Again, this needs to be using SpinTools IDE with P1 compile using external tools option rigged for FlexProp.
Comments
Here's a version of the @JonnyMac I2C scanner that works with debug window for both P1 and P2.
Again, this needs to be using SpinTools IDE with P1 compile using external tools option rigged for FlexProp.
Seems there's an issue with debug keyboard input in P1 mode, hopefully @ersmith can fix it.
Actually, should make sure I have the latest version of flexprop... (ok, yes have the latest, so that's not it...)
Wow, debug graphics works on P1. This is something. Might be even more useful on P1 that P2?
Again, this needs to be using SpinTools IDE with P1 compile using external tools option rigged for FlexProp.
This is the sawtooth example, copied from Spin2 web documentation.
Note: Probably requires Spin Tools IDE 0.52.1 or later to work...
Looks like all the examples are going to work, but fun to play with them anyway...
Who'd have thought this would work with P1?
Here's the logic example from Spin2 docs working on P1 (and P2).
Here's a more impressive example, if say so myself
Getting the sine wave debug scope example was more of a challenge because Spin2 for P1 doesn't have qsin (since uses P2 only features).
But, and here's the awesome part, was able to use inline assembly and code from P1 manual to fairly easily implement qsin for P1.
Not exactly sure why top graph doesn't move, but doesn't on P2 either...
Here's that fft scope example.
Had to modify the P1 qsin routine to take modulus of step relative to max step...
This one is simpler, but could be very useful...
Have a "grideye" QWIIC camera with 8x8 pixel output. Think can hack this to show that, would be nice...
Doing one last one, the midi example.
Kind of disappointed that it doesn't make sound, thought it would
The issue here is that Spin2 on P1 doesn't have getrnd()
Tried to implement with Chip's Real Random in inline assembly, but it doesn't work, not sure why.
So instead, just used the Spin2 ?? operator to generate a random number.
Think this example might be working correctly, but not really sure...
Here is code for a QWIIC Barometer in Spin2 that works for both P1 and P2.
Again, this needs to be using SpinTools IDE with P1 compile using external tools option rigged for FlexProp.
Uses Debug to display temperature and pressure...
https://www.sparkfun.com/sparkfun-micro-absolute-digital-barometer-lps28dfw-qwiic.html?
WOW
Added slides from today's Live Forum to top post...
Chip asked if debug works from other cogs... Have to test that...
Yea, awesome.
Because the
MyScope TRIGGER 0 HOLDOFF 2locks the zero crossing to the center line. It's a feature.