O'Reilly logo

Extreme NXT: Extending the LEGO MINDSTORMS NXT to the Next Level by Isabelle Hurbain, Philippe Philo Hurbain, Michael Gasperi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

APPENDIX CCode Listings

Arranged by chapter, here are the complete listings of the programs. You can also download them from the book website, in the Source Code/Download area at http://www.apress.com.

Chapter 9

Listing C-1. rawmeter.nbc

//-------------------Variable Declarations------------------ dseg segment        TLocation     struct        X             sword        Y             sword    TLocation  ends    TDrawText  struct       Result  sbyte       Location TLocation      Text      byte[]      Options   dword    TDrawText   ends    dtArgs TDrawText    thePort byte IN_1 // sensor port 1    theSensorType byte IN_TYPE_REFLECTION  //RCX style light    theSensorMode byte IN_MODE_RAW  // raw data mode    RVal sword    SVal sword 0    isInvalid ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required