Skip to content

Frijol/Singapore_demos

Repository files navigation

Demo code for Devfest.Asia presentation

Devfest.Asia November 2016

Accompanying slides are here including a quite long appendix that didn't make the talk – check it out if you'd like more detail on anything.

Demos

Note: in my talk, I go through these demos:

  • 02_helloSerial
  • 03_helloAccelerometer
  • 05_pollZAxis
  • 06_pollActiveZ
  • 07_interpretZ

The other ones are bonus :)

01_digital

Demonstration toggling one pin to read on a logic analyzer

02_helloSerial

Demonstration of communication over a protocol (serial) to be read on a logic analyzer

03_helloAccelerometer

Reads the WHO_AM_I register of accelerometer MMA8452Q over I2C, should return 0x2A over the logic analyzer and print <Buffer 2a> to the console

04_getZAxis

Reads the OUT_Z_MSB register of accelerometer MMA8452Q over I2C, should print a single hexadecimal value to the console

05_pollZAxis

Reads the OUT_Z_MSB register of accelerometer MMA8452Q over I2C at an interval of once per second, should print the same single hexadecimal value to the console over and over (the accelerometer has not been set to "active" mode)

06_pollActiveZ

Sets the accelerometer to active mode and then reads the OUT_Z_MSB register of accelerometer MMA8452Q over I2C at an interval of once per second - the value should change as the project is moved

07_interpretZ

Reads the changing OUT_Z_MSB register of accelerometer MMA8452Q over I2C at an interval of once per second and interprets/prints to the console whether it is negative or positive

Tools used

Additional links

About

Demos for Devfest.Asia 2016

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published