12.07.2015 Views

PICAXE Manual Section 1 - TechnoPujades - Free

PICAXE Manual Section 1 - TechnoPujades - Free

PICAXE Manual Section 1 - TechnoPujades - Free

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

www.picaxe.co.uk<strong>Section</strong> 1 76GETTING STARTED<strong>PICAXE</strong>-28A / 28X / 28X1 / 28X2 CommandsOutput high, low, toggle, pulsout, let pins =Inputif...then, pulsin, buttonADCreadadcRAMpeek, pokeSoundsoundSerialserin, seroutProgram Flow goto, gosub, return, branchLoopsfor...nextMathematics let (+, -, *, **, /, //, max, min, &, |, ^, &/, |/, ^/ )Variablesif...then, random, lookdown, lookupData memory eeprom, write, readDelayspause, wait, nap, sleep, endMiscellaneous symbol, debugInterruptsetintServo Control servoInfraredinfrainTemperature readtemp1-wire Serial No readowsnKeyboardkeyin, keyled<strong>PICAXE</strong>-28X Additional Commands:Inputcount, if portA….thenADCreadadc10Portc config. let dirsc =Portc output high portC, low portC, let pinsc =I2Creadi2c, writei2c, i2cslaveTemperature readtemp12PWMpwmout<strong>PICAXE</strong>-28X1 Additional Commands:Scratchpad put, get, @ptr, @ptrinc, @ptrdecADCcalibadc, calibadc10Serialhsersetup, hserout, hserin, serrxdSPIspiin, spiout, hspisetup, hspiin, hpsioutI2Chi2csetup, hi2cin, hi2coutOne-wireowin, owoutPWMhpwmTimersettimerPower control hibernate, enablebod, disablebodrevolution(c) Revolution Education Ltd. Email: info@rev-ed.co.uk Web: www.rev-ed.co.ukVersion 6.9 07/2009All rights reserved.76

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!