PDA

View Full Version : Code Snippets



  1. Read Me First!
  2. BRANCH - Memory Saving
  3. Getting Started
  4. Random Numbers
  5. LED Fader
  6. Elapsed time display (X1)
  7. PWM Calculator
  8. VMusic2 Tecnical's sample in new forum format
  9. VDrive2 Sample Code
  10. Maxim DS1307 PICAXE 28X1 i2c sample code
  11. Devantech CMPS03 Compass PICAXE 28X1 i2c Sample Code
  12. MCP23016 I/O expander driving LEDs PICAXE 28X1 hi2c sample code
  13. Datalogging with uALFAT-TF and Hi2c
  14. Multitasking on Picaxe by using the time interrupt
  15. CRC Subroutines for DS18B20 Temperature probes
  16. ADC - Changing supply voltage
  17. Julian date code for picaxe
  18. Extending / reconfiguring Picaxe-18X I/O
  19. Data Shift Out
  20. Pause that's not interrupted
  21. Random comand with the 08 motor driver???
  22. 28X1: Method for writing modular code
  23. Code Module: WordA * WordB / Word C
  24. Code Module: Graph Lookup
  25. Code Module: Precise Running Average
  26. Excel: Receive serial without MS Comm controls
  27. Multiply by a factor, precisely
  28. Avago colour sensor
  29. Reliable infra-red system (bi-directional)
  30. DS1307 Flash Memory Usage
  31. 28X1 SHT11 Temperature/Humidity interface code
  32. Pich numbers randomly from a list without duplicates (or deal a deck of cards)
  33. Very accurate timebase counter
  34. Battery monitor
  35. Integer maths problem negative numbers
  36. Detecting Power-On vs Reset
  37. ArcTan Approximation
  38. DS1621 i2c sample code on 40X1
  39. Binary Degrees
  40. 'Gosub Slot' idea
  41. Using Xbee as a buffer
  42. Managing parallel LCD 1 line 16 characters PICAXE 28x1
  43. Scrolling message on a 32x8 LED dot-matrix display (HT1632)
  44. Play tune received from Master Picaxe
  45. 40X2 Template
  46. pedestrian readadc with all bells & whistles
  47. 2-bit Gray rotary encoder code example
  48. floating point
  49. Maths 'Module' for more accurate calculations
  50. *Animals*
  51. Sample DS18B20 Code Inc Negatives
  52. Using SetTimer preload values
  53. MCP4921 / MCP4922 SPI interfacing 18x
  54. Demo Scrolling Menu on 4x20 LCD
  55. X2 Hardware Interrupts(INT0,INT1,INT2)
  56. Adding Time and Date stamping to the AXE110 datalogger programs
  57. Routine for DoubleWord/ ByteC
  58. PICAXE 28X2 Code for Sony Playstation PS2 Controller
  59. MAX6956 LED Driver and I/O Expander - Example Code
  60. DS18B20 Code Examples
  61. Nokia 3110 LCD Display Code
  62. Simple Farenheit to Celsius conversion
  63. 32 bit Multiplication
  64. AXE181 PICAXE 18M2 TOUCH SENSOR DEMO BOARD v1.0.0 Auto Configuration by Tarzan
  65. Touch input used as liquid level sensor
  66. Use of Comparators in the PICAXE-18M2
  67. Stepper motor positioning
  68. Break point for debugging
  69. DS1307 RTC with GMT/BST auto-adjustment
  70. Noughts and crosses
  71. Tachometer; photo input with 4bit LCD
  72. DS1307 Code Examples
  73. LCD bargraph - analog simulation
  74. LCD Analog Pointer
  75. Next: Who wants to be a Millionaire?
  76. DS3231 Code examples
  77. Hold button for a reset.
  78. RDM630 125khz RFID Card Reader CODE EXAMPLE
  79. Line Follower basic code for Picaxe 18X
  80. Generating A 16-Bit CRC
  81. Rotary Encoder debounce and signal processor
  82. Bit Bang I2C 08M datalogger
  83. GPS, NEMA extraction for Picaxe
  84. Communication Between 2 Picaxe 20X2's Using I2C
  85. Display HEX values in terminal window
  86. Learning to Drive an LCD DISPLAY
  87. Demonstration of open looping style of programming - AXE092 Schools Experimenter
  88. LLAP (formally aP) code, schematic and layout for building a wireless temp sensor
  89. Menu selection and number input without a keypad
  90. Arrays in PICAXE
  91. Automatic frequency calibration / finetuning of internal PICAXE resonators
  92. Controlling a servo without using "SERVO"
  93. Calculate Logarithms with PICAXE math
  94. Calculate Square Root to two decimal places
  95. Panning SRF005 without using the 'SERVO" commands
  96. Mode button, select code section to run with a button - no interrupt
  97. Expanding PICAXE named-variables via RAM bank-switching
  98. Using the Tellymate shield with 28X2 baseboard
  99. Calculating Processor Overhead - 20x2 @ 64mhz
  100. Single-paper Picaxe-08M(2) programming quick reference (including troubleshooting)
  101. MicroBot (BOT120) asynchronous RC control using interrupt on IR receiver input