diff --git a/docs/js/call.md b/docs/js/call.md new file mode 100644 index 00000000..31225f2c --- /dev/null +++ b/docs/js/call.md @@ -0,0 +1,58 @@ +# Call a function + +The simplest way to get started in JavaScript with your micro:bit is to +call one of the micro:bit's built-in JavaScript functions. Just like Blocks +are organized into categories/drawers, the micro:bit functions are organized by +namespaces. The `basic` namespace contains a number of very helpful +functions: + +```typescript +basic.showString("Hello!") +``` + +If you want to see all functions available in a namespace, simply type `basic` +followed by `.`; a list of all the functions will appear. + +![](/static/mb/js/basicFun.png) + +Continue typing to select one of the functions, or click on one of the functions +to select. You also narrow down the set of functions by typing, as below: + +![](/static/mb/js/basicIntell.png) + +# Function parameters + +You might have noticed that the call `showString` above takes one value, +the string to be scrolled on the LED screen. There is a second (optional) +parameter that controls the speed of the the scroll. Try this: + +```typescript +basic.showString("Hello!",50) +``` + +You might have noticed that the function list above shows all +the available parameters for each function. + + +```typescript +basic.showString("Hello!") +basic.showLeds(` + . # . # . + . . . . . + . . # . . + # . . . # + . # # # . + `) +basic.pause(1000) +basic.clearScreen() +basic.showString("Goodbye!") +basic.showLeds(` + . # . # . + . . . . . + . . . . . + . # # # . + # . . . # + `) +basic.pause(1000) +basic.clearScreen() +``` \ No newline at end of file diff --git a/docs/projects/banana-keyboard-challenges.md b/docs/projects/banana-keyboard-challenges.md index afeb7428..d4cde3bd 100644 --- a/docs/projects/banana-keyboard-challenges.md +++ b/docs/projects/banana-keyboard-challenges.md @@ -59,5 +59,6 @@ input.onPinPressed(TouchPin.P2, () => { * click *run* to see if the code works as expected. - - +### ~button /projects/telegraph +NEXT: Telegraph +### ~ \ No newline at end of file diff --git a/docs/projects/compass.md b/docs/projects/compass.md index b8135280..f9019a18 100644 --- a/docs/projects/compass.md +++ b/docs/projects/compass.md @@ -104,3 +104,6 @@ basic.forever(() => { }); ``` +### ~button /projects/hack-your-headphones +NEXT: Hack Your Headphones +### ~ \ No newline at end of file diff --git a/docs/projects/flashing-heart.md b/docs/projects/flashing-heart.md index 7ab3d99f..38373cce 100644 --- a/docs/projects/flashing-heart.md +++ b/docs/projects/flashing-heart.md @@ -112,4 +112,8 @@ basic.pause(500); basic.clearScreen(); basic.pause(500); }) -``` \ No newline at end of file +``` + +### ~button /projects/smiley-buttons +NEXT: Smiley Buttons +### ~ \ No newline at end of file diff --git a/docs/projects/hack-your-headphones-challenges.md b/docs/projects/hack-your-headphones-challenges.md index 318d14c9..bcc7ddb8 100644 --- a/docs/projects/hack-your-headphones-challenges.md +++ b/docs/projects/hack-your-headphones-challenges.md @@ -71,3 +71,6 @@ input.onButtonPressed(Button.A, () => { * click *compile* and run your code on the micro:bit. +### ~button /projects/banana-keyboard +NEXT: Banana Keyboard +### ~ \ No newline at end of file diff --git a/docs/projects/love-meter.md b/docs/projects/love-meter.md index a3169b79..de66306a 100644 --- a/docs/projects/love-meter.md +++ b/docs/projects/love-meter.md @@ -47,4 +47,8 @@ input.onPinPressed(TouchPin.P2, () => { . . # . . `); }); -``` \ No newline at end of file +``` + +### ~button /projects/rock-paper-scissors +NEXT: Rock Paper Scissors +### ~ \ No newline at end of file diff --git a/docs/projects/radio-challenges.md b/docs/projects/radio-challenges.md index 18b40846..7cdec64c 100644 --- a/docs/projects/radio-challenges.md +++ b/docs/projects/radio-challenges.md @@ -86,3 +86,7 @@ Have fun reviewing your simulation and analyze the acceleration by chart the Exc * The first person and second person take turns tilting the micro:bit in the "x" direction while the other player charts the data on the micro:bit! * Review and analyze the actual micro:bit device acceleration data on Excel * Display acceleration with y or z using plot bar graph by changing acceleration from "x" to "y" or "z" + +### ~button /projects/the-watch +NEXT: The Watch +### ~ \ No newline at end of file diff --git a/docs/projects/rock-paper-scissors.md b/docs/projects/rock-paper-scissors.md index 758a95f6..10b1c9c9 100644 --- a/docs/projects/rock-paper-scissors.md +++ b/docs/projects/rock-paper-scissors.md @@ -235,3 +235,7 @@ input.onButtonPressed(Button.B, () => { How else can you make your game better? Ever hear of [Rock Paper Scissors Spock Lizard](http://www.samkass.com/theories/RPSSL.html)? + +### ~button /projects/compass +NEXT: Compass +### ~ \ No newline at end of file diff --git a/docs/projects/smiley-buttons.md b/docs/projects/smiley-buttons.md index 537e82fa..aa89848e 100644 --- a/docs/projects/smiley-buttons.md +++ b/docs/projects/smiley-buttons.md @@ -66,4 +66,8 @@ input.onButtonPressed(Button.B, () => { # . . . # . # # # .`); }); -``` \ No newline at end of file +``` + +### ~button /projects/love-meter +NEXT: Love Meter +### ~ \ No newline at end of file diff --git a/docs/projects/telegraph-challenges.md b/docs/projects/telegraph-challenges.md index cf5a22fb..eb9a993c 100644 --- a/docs/projects/telegraph-challenges.md +++ b/docs/projects/telegraph-challenges.md @@ -108,3 +108,7 @@ Your telegraph is ready! * Connect the first micro:bit to your computer using your USB cable and put the telegraph script on it. * Connect the second micro:bit to your computer using your USB cable and run the telegraph script on it. * The first person and second person take turns pressing button A to play the telegraph game! + +### ~button /projects/radio +NEXT: Radio +### ~ \ No newline at end of file diff --git a/docs/reference/bluetooth/about-bluetooth.md b/docs/reference/bluetooth/about-bluetooth.md new file mode 100755 index 00000000..b2fd820a --- /dev/null +++ b/docs/reference/bluetooth/about-bluetooth.md @@ -0,0 +1,99 @@ +# About Bluetooth + +![](/static/bluetooth/Bluetooth_SIG.png) + +## Introduction + +Bluetooth is a wireless communications technology which allows devices to communicate with each other without the need for a central device like a router or access point. + +Bluetooth has a special "low energy feature" which means it can be used without requiring much power from the devices using it. It's the Bluetooth low energy feature which the micro:bit uses. + +In the world of Bluetooth low energy, a device has something called a "profile" which defines the way other devices are able to communicate over Bluetooth with it. In a way, the Bluetooth profile defines the way a device appears to other devices in terms of its features and the things it can do. + +To put it another way, a Bluetooth profile is really an interface specification. It defines the data which a device has, what another device can do with that data over a Bluetooth connection and how the device with the profile should respond when a connected device acts upon its data in some way. Let's look at that description in a little more technical detail. + +## Basic Concepts + +A Bluetooth device contains a table of data called an Attribute Table which can be accessed by other connected devices in various possible ways. That table of data and the ways in which it can be exploited falls into a technical area of Bluetooth called the Generic Attribute profile or "GATT" for short and you may see the term GATT in some of the documentation for APIs such as those provided by the Android platform. + +The Attribute Table contains something like a series of records of various types. The main types are called Services, Characteristics and Descriptors. Let's look at each of these terms in turn. + +### Attributes + +Services, Characteristics and Descriptors are all types of Attribute. Hence Generic Attribute Profile, Attribute Table and something called the Attribute Protocol. All attributes have a type which is identified by a UUID (Universally Unique Identifer). Some Attributes are defined by the Bluetooth SIG, the technical standards body for Bluetooth and these have UUIDs which are 16 bits in length. Some Attributes are custom designed for a particular device by the product team and these have 128 bit UUIDs. The micro:bit uses a mixture of 16 bit and 128 bit UUIDs. + +### Structure + +Services, Characteristics and Descriptors are organised in a hierarchy with Services at the top and Descriptors at the bottom. Services contain one or more Characteristics. A Characteristic owns zero or more Descriptors. Zero because Descriptors are completely optional whereas a Service must contain at least one Characteristic. + +![](/static/bluetooth/gatt_hierarchy.png) + +### Services + +A Service is a container for logically related Bluetooth data items. Those data items are in fact called Characteristics. A Service can be thought of as the owner of the Characteristics inside it. Often a Service represents a particular feature (e.g. a hardware feature) of a device like the buttons or a particular sensor. An example of a Bluetooth SIG defined Service is the Device Information Service which, as the name suggests, is a container for various items of information about the device such as its manufacturer and serial number. The micro:bit has this service. + +### Characteristics + +Characteristics are items of data which relate to a particular internal state of the device or perhaps some state of the environment which the device can measure using a sensor. The current battery level is an example of internal state data whereas the ambient temperature could perhaps be measured by a sensor. Sometimes Characteristics represent configuration data such as the frequency at which you want something to be measured. In any of these cases, the way a device can expose such data to other devices to use via Bluetooth is by making them available as a Characteristic. An example of a Bluetooth SIG defined Characteristic is the Serial Number String which you'll find inside the Device Information service. + +Characteristics contain various parts. They have a type, a value, some properties and some permissions. + +Type is something already explained above, a UUID value which indicates which particular type of Characteristic an Attribute is. Value is the value of the associated state data item. + +Properties define what another device can do with the characteristic over Bluetooth in terms of various defined operations such as READ, WRITE or NOTIFY. Reading a characteristic means transferring its current value from the attribute table to the connected device over Bluetooth. Writing allows the connected device to change that value in the state table. Notifications are a special message type which a device like the micro:bit can send to a connected device whenever the value of the associated characteristic changes or perhaps periodically, controlled by a timer. Not all Characteristics support all operations. The Characteristic's properties tell you which operations are supported. + +Sometimes the device will have been programmed to respond in a special way when it processes an operation like reading or writing a value from the attribute table so operations can result in more happening than simply transferring data across the connection. Perhaps changing the value of a Characteristic will result in the device changing the frequency with which it samples readings from the device accelerometer for example. + +Permissions are to do with security and further describe the security conditions that must be met before read or write access to the characteristic is to be granted. + +### Descriptors + +Descriptors contain meta data which either augments the details relating to the Characteristic which the Descriptor belongs to or allows the configuration of a behaviour involving that Characteristic. Notification messages are switched on or off using a special descriptor called the Client Characteristic Configuration Descriptor for example. + +### Profile + +A Bluetooth profile is a specification which pulls together all the required information about how a device behaves, how it can be accessed in terms of its services, characteristics and descriptors, security rules, concurrency limitations and so on. + +## Client Server Architecture + +When a smartphone application interacts with a device like the micro:bit over a Bluetooth connection we have a client/server architecture. The phone application is usually the GATT client and the micro:bit is usually the GATT server. They communicate using a protocol called the Attribute Protocol or just ATT for short. As a smartphone developer you work with APIs and do not have to worry about formulating ATT protocol data units and so on. + +![](/static/bluetooth/services_and_GATT.png) + +## Device Discovery + +Everything described above relates to devices which are connected and communicating as GATT client and server. But there's a stage which precedes this where the two devices are not yet connected. How do they find each other and connect? The answer to this question is termed 'Device Discovery' and is the responsibility of another part of the Bluetooth architecture called the Generic Access Profile (GAP). + +In GAP, one devices advertises, emitting small packets of data periodically. These packets contain information about the device doing the advertising. Other devices looking for devices to connect to perform something called scanning, receiving and processing advertising packets and filtering out those that come from devices of a type that are not of interest. Usually the user is given information about devices which are discovered and they then select one to be connected to. The device which advertises is called a Bluetooth Peripheral whereas the one doing the scanning is a Bluetooth Central device. micro:bit is a Bluetooth peripheral. + +Bluetooth on the BBC micro:bit + +Full documentation for the BBC micro:bit Bluetooth profile as used by this application can be found at the [Lancaster University documentation](http://lancaster-university.github.io/microbit-docs/ble/profile/) web site. + +The micro:bit's accelerometer (motion detector), magnetometer (digital compass), two buttons on the front, LED Display, IO pins on the edge connector, internal message bus and internal temperature sensor are all exposed as Services so that applications can exploit these features of the device. In addition: + +* the Bluetooth SIG defined Device Information Service is included to allow applications to obtain information such as firmware version details over Bluetooth +* there's a Device Firmware Update (DFU) service which allows new micro:bit code to be flahsed to the device over Bluetooth instead of over USB +* there's a UART service which allows arbitrary data to be exchanged with the micro:bit in a way resembling traditional serial communications. + +Everything you can do with the micro:bit over Bluetooth is achieved through read, write and notify operations. Not all characteristics support all three so check the profile documentation. Often there are Characteristics whose purpose is to allow you to write configuration values which control other behviours. Technically these are called Control Points. For example you can specify the frequency with which accelerometer data is sampled before it is transmitted as a Notification message to your application. + +## Want to Know More? + +The Bluetooth SIG web site at http://www.bluetooth.com is a good place for further information about Bluetooth in general. You'll find all the SIG defined profiles, services, characteristics and descriptors there as well as the core specification for all Bluetooth technology. + +That's it! Enjoy using Bluetooth on the BBC micro:bit! + +Martin Woolley, Bluetooth SIG. Twitter: @bluetooth_mdw + +#### Video +https://www.youtube.com/watch?v=aep_GVowKfs + + +### See also + +[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com) + +```package +microbit-bluetooth +``` \ No newline at end of file diff --git a/docs/reference/bluetooth/bluetooth-pairing.md b/docs/reference/bluetooth/bluetooth-pairing.md index d9677e60..976f8c07 100755 --- a/docs/reference/bluetooth/bluetooth-pairing.md +++ b/docs/reference/bluetooth/bluetooth-pairing.md @@ -92,7 +92,8 @@ If you do find yourself needing to pair again you will first need to remove the ### See also -[Bluetooth SIG](https://www.bluetooth.com), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html) +[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com) + ```package microbit-bluetooth diff --git a/docs/reference/bluetooth/on-bluetooth-connected.md b/docs/reference/bluetooth/on-bluetooth-connected.md index 8594d947..81fda9c6 100755 --- a/docs/reference/bluetooth/on-bluetooth-connected.md +++ b/docs/reference/bluetooth/on-bluetooth-connected.md @@ -30,7 +30,7 @@ http://www.youtube.com/watch?v=HyBcsD9Eh6I ### See also -[Bluetooth SIG](https://www.bluetooth.com), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html) +[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com) ```package microbit-bluetooth diff --git a/docs/reference/bluetooth/on-bluetooth-disconnected.md b/docs/reference/bluetooth/on-bluetooth-disconnected.md index 942f7efa..e0d64fcc 100755 --- a/docs/reference/bluetooth/on-bluetooth-disconnected.md +++ b/docs/reference/bluetooth/on-bluetooth-disconnected.md @@ -30,7 +30,7 @@ http://www.youtube.com/watch?v=HyBcsD9Eh6I ### See also -[Bluetooth SIG](https://www.bluetooth.com), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html) +[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com) ```package microbit-bluetooth diff --git a/docs/reference/bluetooth/start-accelerometer-service.md b/docs/reference/bluetooth/start-accelerometer-service.md index abb9e4b5..9c14de9e 100755 --- a/docs/reference/bluetooth/start-accelerometer-service.md +++ b/docs/reference/bluetooth/start-accelerometer-service.md @@ -35,7 +35,7 @@ For more advanced information on the micro:bit Bluetooth accelerometer service i ### See also -[Bluetooth SIG](https://www.bluetooth.com), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html) +[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com) ```package microbit-bluetooth diff --git a/docs/reference/bluetooth/start-button-service.md b/docs/reference/bluetooth/start-button-service.md index 1e8e1313..5ada6740 100755 --- a/docs/reference/bluetooth/start-button-service.md +++ b/docs/reference/bluetooth/start-button-service.md @@ -39,7 +39,7 @@ For more advanced information on the micro:bit Bluetooth button service includin ### See also -[Bluetooth SIG](https://www.bluetooth.com),[Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html) +[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com) ```package microbit-bluetooth diff --git a/docs/reference/bluetooth/start-io-pin-service.md b/docs/reference/bluetooth/start-io-pin-service.md index 48ffa914..a32d5ca9 100755 --- a/docs/reference/bluetooth/start-io-pin-service.md +++ b/docs/reference/bluetooth/start-io-pin-service.md @@ -33,7 +33,7 @@ For more advanced information on the micro:bit Bluetooth IO pin service includin ### See also -[Bluetooth SIG](https://www.bluetooth.com), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html) +[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com) ```package microbit-bluetooth diff --git a/docs/reference/bluetooth/start-led-service.md b/docs/reference/bluetooth/start-led-service.md index 3dc1c5ea..e01073d7 100755 --- a/docs/reference/bluetooth/start-led-service.md +++ b/docs/reference/bluetooth/start-led-service.md @@ -35,7 +35,7 @@ For more advanced information on the micro:bit Bluetooth LED service including i ### See also -[Bluetooth SIG](https://www.bluetooth.com), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html) +[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com) ```package microbit-bluetooth diff --git a/docs/reference/bluetooth/start-magnetometer-service.md b/docs/reference/bluetooth/start-magnetometer-service.md index 4dcab9d7..f86f295f 100755 --- a/docs/reference/bluetooth/start-magnetometer-service.md +++ b/docs/reference/bluetooth/start-magnetometer-service.md @@ -35,7 +35,7 @@ For more advanced information on the micro:bit Bluetooth magnetometer service in ### See also -[Bluetooth SIG](https://www.bluetooth.com), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html) +[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com) ```package diff --git a/docs/reference/bluetooth/start-temperature-service.md b/docs/reference/bluetooth/start-temperature-service.md index 0679fbb0..ba5c3c41 100755 --- a/docs/reference/bluetooth/start-temperature-service.md +++ b/docs/reference/bluetooth/start-temperature-service.md @@ -35,7 +35,7 @@ For more advanced information on the micro:bit Bluetooth temperature service inc ### See also -[Bluetooth SIG](https://www.bluetooth.com), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html) +[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com) ```package diff --git a/docs/reference/bluetooth/start-uart-service.md b/docs/reference/bluetooth/start-uart-service.md index a74875a9..41e180b8 100755 --- a/docs/reference/bluetooth/start-uart-service.md +++ b/docs/reference/bluetooth/start-uart-service.md @@ -37,7 +37,7 @@ For more advanced information on the micro:bit Bluetooth UART service including ### See also -[Bluetooth SIG](https://www.bluetooth.com), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html) +[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com) ```package microbit-bluetooth diff --git a/docs/reference/bluetooth/uart-read.md b/docs/reference/bluetooth/uart-read.md index 374507c7..eb08ee7e 100755 --- a/docs/reference/bluetooth/uart-read.md +++ b/docs/reference/bluetooth/uart-read.md @@ -45,7 +45,7 @@ For more advanced information on the micro:bit Bluetooth UART service including ### See also -[Bluetooth SIG](https://www.bluetooth.com), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html) +[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com) ```package microbit-bluetooth diff --git a/docs/reference/bluetooth/uart-write.md b/docs/reference/bluetooth/uart-write.md index 58c3d676..21008b75 100755 --- a/docs/reference/bluetooth/uart-write.md +++ b/docs/reference/bluetooth/uart-write.md @@ -44,7 +44,7 @@ For more advanced information on the micro:bit Bluetooth UART service including ### See also -[Bluetooth SIG](https://www.bluetooth.com), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html) +[About Bluetooth](/reference/bluetooth/about-bluetooth), [micro:bit Bluetooth profile overview ](http://lancaster-university.github.io/microbit-docs/ble/profile/), [micro:bit Bluetooth profile reference](http://lancaster-university.github.io/microbit-docs/resources/bluetooth/microbit-profile-V1.9-Level-2.pdf), [Bluetooth on micro:bit resources](http://bluetooth-mdw.blogspot.co.uk/p/bbc-microbit.html), [Bluetooth SIG](https://www.bluetooth.com) ```package microbit-bluetooth diff --git a/docs/static/bluetooth/gatt_hierarchy.png b/docs/static/bluetooth/gatt_hierarchy.png new file mode 100755 index 00000000..d5171d3a Binary files /dev/null and b/docs/static/bluetooth/gatt_hierarchy.png differ diff --git a/docs/static/bluetooth/services_and_GATT.png b/docs/static/bluetooth/services_and_GATT.png new file mode 100755 index 00000000..7fd212d0 Binary files /dev/null and b/docs/static/bluetooth/services_and_GATT.png differ diff --git a/docs/static/mb/js/basicFuns.png b/docs/static/mb/js/basicFuns.png new file mode 100644 index 00000000..2a4444fa Binary files /dev/null and b/docs/static/mb/js/basicFuns.png differ diff --git a/docs/static/mb/js/basicIntell.png b/docs/static/mb/js/basicIntell.png new file mode 100644 index 00000000..9cf330f1 Binary files /dev/null and b/docs/static/mb/js/basicIntell.png differ diff --git a/docs/static/mb/projects/a1-display.png b/docs/static/mb/projects/a1-display.png index c835b4fa..bd3236c8 100644 Binary files a/docs/static/mb/projects/a1-display.png and b/docs/static/mb/projects/a1-display.png differ diff --git a/docs/static/mb/projects/a2-buttons.png b/docs/static/mb/projects/a2-buttons.png index ed882419..668a5a46 100644 Binary files a/docs/static/mb/projects/a2-buttons.png and b/docs/static/mb/projects/a2-buttons.png differ diff --git a/docs/static/mb/projects/a3-pins.png b/docs/static/mb/projects/a3-pins.png index 4ca19601..5e811541 100644 Binary files a/docs/static/mb/projects/a3-pins.png and b/docs/static/mb/projects/a3-pins.png differ diff --git a/docs/static/mb/projects/a4-motion.png b/docs/static/mb/projects/a4-motion.png index 10ea6a2d..49b5a6cb 100644 Binary files a/docs/static/mb/projects/a4-motion.png and b/docs/static/mb/projects/a4-motion.png differ diff --git a/docs/static/mb/projects/a5-compass.png b/docs/static/mb/projects/a5-compass.png index 3d7f8655..d3e34ce8 100644 Binary files a/docs/static/mb/projects/a5-compass.png and b/docs/static/mb/projects/a5-compass.png differ diff --git a/docs/static/mb/projects/a6-music.png b/docs/static/mb/projects/a6-music.png index 0ec2718c..6a1e39f1 100644 Binary files a/docs/static/mb/projects/a6-music.png and b/docs/static/mb/projects/a6-music.png differ diff --git a/docs/static/mb/projects/a7-conductive.png b/docs/static/mb/projects/a7-conductive.png index 3ae20a63..1c3ab640 100644 Binary files a/docs/static/mb/projects/a7-conductive.png and b/docs/static/mb/projects/a7-conductive.png differ diff --git a/docs/static/mb/projects/a8-network.png b/docs/static/mb/projects/a8-network.png index 9ac1f2f5..de76df32 100644 Binary files a/docs/static/mb/projects/a8-network.png and b/docs/static/mb/projects/a8-network.png differ diff --git a/docs/static/mb/projects/a9-radio.png b/docs/static/mb/projects/a9-radio.png index 80d48107..d8cf0f40 100644 Binary files a/docs/static/mb/projects/a9-radio.png and b/docs/static/mb/projects/a9-radio.png differ