- Home
- Products
- Integration
- Tutorial
- Barcode FAQ
- Purchase
- Company
birt barcode tool B REFERENCES, LINKS, AND SOURCES in Font
APPENDIX B REFERENCES, LINKS, AND SOURCES Drawing QR Code In None Using Barcode printer for Font Control to generate, create QR image in Font applications. www.OnBarcode.comGenerating Barcode In None Using Barcode generation for Font Control to generate, create Barcode image in Font applications. www.OnBarcode.comHuman comfort zone: http://www.p2pays.org/ref/08/07692.pdf The Rotronic Humidity Handbook: http://www.rotronicusa.com/Ref/Rotronic%20Humidity%20Handbook.pdf Theremin: http://www.thereminworld.com/ Code 128 Code Set C Creator In None Using Barcode printer for Font Control to generate, create Code 128 Code Set C image in Font applications. www.OnBarcode.comEncode USS Code 39 In None Using Barcode generation for Font Control to generate, create Code 3/9 image in Font applications. www.OnBarcode.com 6
Painting Data Matrix ECC200 In None Using Barcode generation for Font Control to generate, create Data Matrix ECC200 image in Font applications. www.OnBarcode.comEAN13 Generation In None Using Barcode generator for Font Control to generate, create EAN13 image in Font applications. www.OnBarcode.comBourns: http://www.bourns.com/ Inverted pendulum: http://en.wikipedia.org/wiki/Inverted_pendulum
Drawing PDF417 In None Using Barcode creation for Font Control to generate, create PDF-417 2d barcode image in Font applications. www.OnBarcode.comEncode MSI Plessey In None Using Barcode creation for Font Control to generate, create MSI Plessey image in Font applications. www.OnBarcode.com 7
QR Code 2d Barcode Drawer In Java Using Barcode generation for Java Control to generate, create QR Code image in Java applications. www.OnBarcode.comScan QR-Code In C#.NET Using Barcode recognizer for .NET framework Control to read, scan read, scan image in VS .NET applications. www.OnBarcode.comBatteries: http://www.duracell.com/oem/primary/alkaline/alkaline_manganese_prod.asp
Reading USS Code 39 In C#.NET Using Barcode reader for .NET framework Control to read, scan read, scan image in .NET framework applications. www.OnBarcode.comPrint GS1 128 In .NET Framework Using Barcode encoder for ASP.NET Control to generate, create EAN128 image in ASP.NET applications. www.OnBarcode.com 8
Read EAN / UCC - 13 In .NET Using Barcode recognizer for VS .NET Control to read, scan read, scan image in .NET applications. www.OnBarcode.comGenerating Barcode In VB.NET Using Barcode maker for VS .NET Control to generate, create Barcode image in .NET applications. www.OnBarcode.com2N3906 datasheet: http://www.fairchildsemi.com/ds/2N/2N3906.pdf Acroname: http://www.acroname.com/ DN6849SE datasheet: http://www.ortodoxism.ro/datasheets/panasonic/SPC00004CEB.pdf Sharp GP2D12 datasheet: http://document.sharpsma.com/files/GP2D12-DATA-SHEET.PDF USS-128 Creator In None Using Barcode printer for Word Control to generate, create EAN128 image in Word applications. www.OnBarcode.comUCC - 12 Maker In Java Using Barcode creator for BIRT reports Control to generate, create GTIN - 128 image in BIRT applications. www.OnBarcode.com 9
Generate UPC-A Supplement 5 In None Using Barcode drawer for Online Control to generate, create Universal Product Code version A image in Online applications. www.OnBarcode.comANSI/AIM Code 39 Drawer In Visual C# Using Barcode drawer for VS .NET Control to generate, create USS Code 39 image in .NET framework applications. www.OnBarcode.com1230-030D-3L datasheet: http://www.meas-spec.com/product/t_product.aspx id=2828 1N4148 datasheet: http://www.fairchildsemi.com/ds/1N/1N4148.pdf LM324 datasheet: http://www.national.com/ds.cgi/LM/LM124.pdf Lamp filament resistance: http://www.ee.bgu.ac.il/~pel/pdf-files/conf104.pdf PDF-417 2d Barcode Reader In .NET Using Barcode recognizer for .NET Control to read, scan read, scan image in Visual Studio .NET applications. www.OnBarcode.comDraw EAN 13 In .NET Using Barcode drawer for Reporting Service Control to generate, create EAN-13 image in Reporting Service applications. www.OnBarcode.com 10
2N3904 datasheet: http://www.fairchildsemi.com/ds/2N/2N3904.pdf
APPENDIX B REFERENCES, LINKS, AND SOURCES
11
The Clapper: http://www2.jeiusa.com/index.php/je-products/the-clapper.html Etch-A-Sketch: http://www.ohioart.com/etch/ 12
1N400X datasheet: http://www.diodes.com/datasheets/ds28002.pdf 1N4733 datasheet: http://www.fairchildsemi.com/ds/1N/1N4744A.pdf Dyanalloy and Flexinol: http://www.dynalloy.com/ Globe pencil sharpener: http://rinovelty.com/index.cfm/fuseaction/products.detail/item/STSHGLO/globe_pencil_sharpe ner IRF510 datasheet: http://www.irf.com/product-info/datasheets/data/irf510.pdf IRF520 datasheet: http://www.irf.com/product-info/datasheets/data/irf520.pdf IRF9530 datasheet: http://www.irf.com/product-info/datasheets/data/irf530.pdf Jameco Robotic Store: http://www.robotstore.com/ Potter and Brumfield: http://relays.tycoelectronics.com/pnb.asp PS2501-4 datasheet: http://www.cel.com/pdf/datasheets/ps2501.pdf The Robot Shop: http://www.robotshop.us/ STTH2R06RL datasheet: http://www.st.com/stonline/products/literature/ds/10757.pdf TLC555 datasheet: http://focus.ti.com/lit/ds/symlink/tlc555.pdf 13
Cadmium sulfide photoresistors: http://www.selcoproducts.com/CFM/photocell_toc.cfm Grayhill keypad datasheet: http://lgrws01.grayhill.com/web/images/ProductImages/Series%2096%20Standard%20Keypads.pdf I2C manual: http://www.nxp.com/acrobat_download/applicationnotes/AN10216_1.pdf Linear stepper motor datasheet: http://media.digikey.com/pdf/Data%20Sheets/Portescap%20Danaher%20PDFs/35DBM-L.pdf PCF8574 and PCF8574A datasheet: http://www.nxp.com/acrobat_download/datasheets/PCF8574_4.pdf PCF8591 datasheet: http://www.nxp.com/acrobat_download/datasheets/PCF8591_6.pdf APPENDIX B REFERENCES, LINKS, AND SOURCES
Reed Relays: http://www.cotorelay.com/html/reed_relay_8l_series.htm Simon game: http://www.dieterkoenig.at/ccc/english/se_story_simon.htm Tact switch datasheet: http://www.e-switch.com/pdf/TL1105.pdf ULN2003 datasheet: http://focus.ti.com/lit/ds/symlink/uln2003a.pdf 14
Galvanic Skin Response: http://www.extremenxt.com/gsr.htm Hand warmers: http://www.warmers.com/ Light sticks: http://science.howstuffworks.com/light-stick.htm NxtRICedit download: http://ric.dreier-privat.de/Docu/index_eng.htm NXT-remote: http://www.norgesgade14.dk/index.php Panoramic photography: http://www.shortcourses.com/how/panoramic/panoramic.htm Pong: http://www.pong-story.com/ Razix and NXT Director: http://www.razix.com/nxtdirector.htm RoboDNA and Dashboard Designer: http://robodna.com/roboDNA/ Appendix A
Global Specialties: http://www.globalspecialties.com/ 1N4148 datasheet: http://www.fairchildsemi.com/ds/1N/1N4148.pdf LM324 datasheet: http://www.national.com/ds.cgi/LM/LM124.pdf APPENDIX C
Code Listings
Arranged by chapter, here are the complete listings of the NXC programs. You can also download them from the book website, in the Source Code/Download area at http://www.apress.com. 13
Listing C-1. blinkall.nxc #define I2Cport S1 // Port number #define I2CAddr8574 0x70 // I2C address x040 8574 or 0x70 for 8574A byte WriteBuf[]={I2CAddr8574,0x00}; // write buffer is addr and data task main() { int nbytes; SetSensorLowspeed (I2Cport); // Configure I2C port while (true) { WriteBuf[1]++; // update data byte I2CWrite(I2Cport, 0, WriteBuf); // send buffer while(I2CStatus(I2Cport, nbytes)==STAT_COMM_PENDING); // wait } } Listing C-2. low2high.nxc #define I2Cport S1 // NXT sensor port 1 #define I2CAddr8574 0x40 // 0x40 8574 or 0x70 for 8574A byte WriteBuf[] = {I2CAddr8574, 0xFF}; // Sent to 8574 byte ReadBuf[]; // Receive from PCF8574 int RdCnt=1; // Number of bytes to read APPENDIX C CODE LISTINGS
task main (){ SetSensorLowspeed (I2Cport); // Configure NXT port while (true){ // write output data and read back port value I2CBytes(I2Cport, WriteBuf, RdCnt, ReadBuf); // shift left 4 bits and make lowest 4 bits 1 WriteBuf[1] = (ReadBuf[0] << 4) + 0x0f; } } Listing C-3. simon.nxc #define MaxNotes 50 #define ToneDuration 300 #define IntervalDuration 100 #define I2Cport S1 // I2CAddr8574 = 0x40 for PCF8574 // I2CAddr8574 = 0x70 for PCF8574A #define I2CAddr8574 0x40 // Write buffer to send to PCF8574 byte WriteBuf[] = {I2CAddr8574, 0xFF}; // Read buffer that receives byte read from PCF8574 byte ReadBuf[]; // Number of bytes to read int RdCnt=1; // Notes buffer int notes[]; byte LedVal[] = {0xef, 0xdf, 0xbf, 0x7f}; int Tone[] = {TONE_C4, TONE_E4, TONE_G4, TONE_C5}; //******************************************* // Plays a tone and light matching LED. // LED are on higer half of PCF8574 data byte // Parameter is LED number (0..3) void LedTone( int Led) { if(Led < 0 || Led > 3 ) return; WriteBuf[1] = LedVal[Led]; I2CWrite(I2Cport, 0, WriteBuf); PlayTone (Tone[Led], ToneDuration); Wait(ToneDuration); WriteBuf[1] = 0xff; I2CWrite(I2Cport, 0, WriteBuf); Wait(IntervalDuration); } APPENDIX C CODE LISTINGS
//******************************************* // Read the I2C button state and returns button number // The buttons are on lower half of PCF8574 data byte // Rightmost button have priority. int GetButtons() { WriteBuf[1] = 0xff; do { I2CBytes(I2Cport, WriteBuf, RdCnt, ReadBuf); } while (ReadBuf[0] == 0xff) for(int i=0; i<4; i++) { if((ReadBuf[0] & 1) == 0) return i; ReadBuf[0]>>=1; } } task main () { int i; // Configure NXT port SetSensorLowspeed (I2Cport); TextOut(8, LCD_LINE3, "NXT Simon"); TextOut(8, LCD_LINE4, "Press orange"); TextOut(8, LCD_LINE5, "button to start"); // Wait for orange button and seed random generator do { Random(); } while (! ButtonPressed (BTNCENTER, true)) TextOut(8, LCD_LINE4, " "); TextOut(8, LCD_LINE5, " "); Wait(1000); // Initialise notes buffer, without repetition ArrayInit(notes, 0, MaxNotes); int Val=Random(4); notes[0]=Val; for(i=1; i < MaxNotes; i++) { do { Val=Random(4); } while (Val == notes[i-1]); notes[i] = Val; }
|
|