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 77GETTING STARTED<strong>PICAXE</strong>-40X/40X1/40X2 CommandsOutput high, low, toggle, pulsout, let pins = ,Inputif...then, if portA…then, if portC then…, pulsin, button,CountingcountADCreadadc, readadc10Portc config. let dirsc =Portc output high portc, low portc, let pinsc =PWMpwmoutRAMpeek, 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 readtemp, readtemp121-wire Serial No readowsnKeyboardkeyin, keyled<strong>PICAXE</strong>-40X1 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.77

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

Saved successfully!

Ooh no, something went wrong!