Skip to main content
Documentation
Support
Projects
Flashing heart
Smiley buttons
Love meter
Rock paper scissors
Magic button trick
Coin Flipper
Hack your headphones
Banana keyboard
Guitar
Duct tape wallet
Watch
Soil Moisture
Plant Watering
Reaction Time
States of Matter
Hot Or Cold
Voting Machine
Infection
Fireflies
Rock Paper Scissors Teams
Inchworm
Milk Carton Robot
Milk monster
RC Car
Timing gates
Compass
Telegraph
Railway Crossing
Karel
Examples
Blinky
Name tag
Rando
Plot acceleration
Plot light level
Plot analog pin
Servo calibrator
Game of Life
Egg and Spoon Race
Stop watch
Radio dashboard
Courses
CS Intro
About
Introduction
References
Acknowledgements
Making
Introduction
Unplugged
Walkthrough
Project
Standards
Algorithms
Overview
Unplugged
Activity
Project
Standards
Variables
Overview
Unplugged
Activity
Project
Standards
Conditionals
Overview
Unplugged
Activity
Project
Standards
Iteration
Overview
Unplugged
Activity
Project
Standards
Mini-project
Review
Activity
Project
Standards
Coordinates
Overview
Unplugged
Activity
Project
Standards
Booleans
Overview
Unplugged
Activity
Project
Standards
Binary
Overview
Unplugged
Activity
Project
Standards
Radio
Overview
Unplugged
Activity
Project
Standards
Arrays
Overview
Unplugged
Activity
Project
Standards
Final Project
Review
Project
Examples
Standards
Reference
Basic
show number
show icon
show leds
show string
clear screen
forever
pause
show arrow
show animation
Input
on button pressed
on gesture
on pin pressed
button is pressed
compass heading
pin is pressed
temperature
acceleration
light level
rotation
magnetic force
running time
set accelerometer range
Music
play tone
ring tone
rest
beat
tempo
change tempo by
set tempo
Led
plot
unplot
point
toggle
brightness
set brightness
stop animation
plot bar graph
enable
Radio
send number
send value
send string
on data packet received
set group
set transmit power
set transmit serial number
write received packet to serial
Game
create sprite
delete
move
turn
in on edge bounce
get
set
change
is touching
is touching edge
add score
score
set score
start countdown
game over
pause
resume
Images
create image
create big image
show image
scroll image
arrow image
icon image
arrow number
Pins
digital read pin
digital write pin
analog read pin
analog write pin
analog set period
map
on pulsed
pulse duration
pulse in
servo write pin
servo set pulse
i2c read number
i2c write number
set pull
analog pitch
analog set pitch pin
spi write
spi Pins
spi format
spi frequency
Serial
write line
write number
write value
write string
read until
read line
read string
on data received
redirect
write buffer
read buffer
Control
in background
reset
wait micros
on event
raise event
event timestamp
event value
Bluetooth
Pairing
on bluetooth connected
on bluetooth disconnected
start accelerometer service
start button service
start io pin service
start led service
start magnetometer service
start temperature service
start uart service
uart read until
uart write string
uart write number
uart write value
advertise url
stop advertising
advertise uid
advertise-uid-buffer
Devices
tell camera to
tell remote control to
raise alert to
on notified
on gamepad button
signal strength
on signal strength changed
Packages
NeoPixel
File System
Sonar
Bluetooth Temperature Sensor
MAX6675
Bluetooth MAX6675
MIDI
Bluetooth MIDI
Code Dojo Olney
UCL Junk Robot
SRS BitBot
SRS BitBot
BlockyTalkyBLE
Blocks
On Start
Loops
repeat
for
while
Logic
if
Boolean
Variables
assign
change var
var
Math
JavaScript blocks
Custom blocks
JavaScript
Calling
Sequencing
Variables
Operators
Statements
Functions
Types
Classes
Interfaces
Generics
Types
Number
String
Boolean
Array
Function
Hardware
Data logging
Error codes
Foil circuits
MES events
Pins
Reactive
Screen
Serial
Servo
Simulator
Usb
Flashing via HID (CMSIS-DAP)
Published by Microsoft
Documentation
Support
Projects
Flashing heart
Smiley buttons
Love meter
Rock paper scissors
Magic button trick
Coin Flipper
Hack your headphones
Banana keyboard
Guitar
Duct tape wallet
Watch
Soil Moisture
Plant Watering
Reaction Time
States of Matter
Hot Or Cold
Voting Machine
Infection
Fireflies
Rock Paper Scissors Teams
Inchworm
Milk Carton Robot
Milk monster
RC Car
Timing gates
Compass
Telegraph
Railway Crossing
Karel
Examples
Blinky
Name tag
Rando
Plot acceleration
Plot light level
Plot analog pin
Servo calibrator
Game of Life
Egg and Spoon Race
Stop watch
Radio dashboard
Courses
CS Intro
About
Introduction
References
Acknowledgements
Making
Introduction
Unplugged
Walkthrough
Project
Standards
Algorithms
Overview
Unplugged
Activity
Project
Standards
Variables
Overview
Unplugged
Activity
Project
Standards
Conditionals
Overview
Unplugged
Activity
Project
Standards
Iteration
Overview
Unplugged
Activity
Project
Standards
Mini-project
Review
Activity
Project
Standards
Coordinates
Overview
Unplugged
Activity
Project
Standards
Booleans
Overview
Unplugged
Activity
Project
Standards
Binary
Overview
Unplugged
Activity
Project
Standards
Radio
Overview
Unplugged
Activity
Project
Standards
Arrays
Overview
Unplugged
Activity
Project
Standards
Final Project
Review
Project
Examples
Standards
Reference
Basic
show number
show icon
show leds
show string
clear screen
forever
pause
show arrow
show animation
Input
on button pressed
on gesture
on pin pressed
button is pressed
compass heading
pin is pressed
temperature
acceleration
light level
rotation
magnetic force
running time
set accelerometer range
Music
play tone
ring tone
rest
beat
tempo
change tempo by
set tempo
Led
plot
unplot
point
toggle
brightness
set brightness
stop animation
plot bar graph
enable
Radio
send number
send value
send string
on data packet received
set group
set transmit power
set transmit serial number
write received packet to serial
Game
create sprite
delete
move
turn
in on edge bounce
get
set
change
is touching
is touching edge
add score
score
set score
start countdown
game over
pause
resume
Images
create image
create big image
show image
scroll image
arrow image
icon image
arrow number
Pins
digital read pin
digital write pin
analog read pin
analog write pin
analog set period
map
on pulsed
pulse duration
pulse in
servo write pin
servo set pulse
i2c read number
i2c write number
set pull
analog pitch
analog set pitch pin
spi write
spi Pins
spi format
spi frequency
Serial
write line
write number
write value
write string
read until
read line
read string
on data received
redirect
write buffer
read buffer
Control
in background
reset
wait micros
on event
raise event
event timestamp
event value
Bluetooth
Pairing
on bluetooth connected
on bluetooth disconnected
start accelerometer service
start button service
start io pin service
start led service
start magnetometer service
start temperature service
start uart service
uart read until
uart write string
uart write number
uart write value
advertise url
stop advertising
advertise uid
advertise-uid-buffer
Devices
tell camera to
tell remote control to
raise alert to
on notified
on gamepad button
signal strength
on signal strength changed
Packages
NeoPixel
File System
Sonar
Bluetooth Temperature Sensor
MAX6675
Bluetooth MAX6675
MIDI
Bluetooth MIDI
Code Dojo Olney
UCL Junk Robot
SRS BitBot
SRS BitBot
BlockyTalkyBLE
Blocks
On Start
Loops
repeat
for
while
Logic
if
Boolean
Variables
assign
change var
var
Math
JavaScript blocks
Custom blocks
JavaScript
Calling
Sequencing
Variables
Operators
Statements
Functions
Types
Classes
Interfaces
Generics
Types
Number
String
Boolean
Array
Function
Hardware
Data logging
Error codes
Foil circuits
MES events
Pins
Reactive
Screen
Serial
Servo
Simulator
Usb
Flashing via HID (CMSIS-DAP)
Published by Microsoft
SPI Write
Write to the SPI Slave and return the response.
pins.spiWrite(0);
Parameters
value
: value Data to be sent to the SPI slave
Returns
a
number
Response from the SPI slave
See also
SPI