Skip to content

Commit

Permalink
update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
willingc committed Feb 9, 2018
1 parent 06d0a9b commit add0b66
Show file tree
Hide file tree
Showing 5 changed files with 308 additions and 201 deletions.
26 changes: 9 additions & 17 deletions examples/Blinky.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"source": [
"## Blinky\n",
"\n",
"Turn on and turn off the led at D13. For Feather M0 Express, that is the onboard red LED next to the microUSB connector."
"Turn on and turn off the led at D13. \n",
"\n",
"For Feather M0 Express and Trinket M0, that is the onboard red LED next to the microUSB connector."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"import digitalio\n",
Expand All @@ -24,9 +24,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"import time"
Expand All @@ -35,9 +33,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"import microcontroller"
Expand Down Expand Up @@ -90,10 +86,8 @@
},
{
"cell_type": "code",
"execution_count": 13,
"metadata": {
"collapsed": true
},
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# MIT License\n",
Expand All @@ -106,9 +100,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": []
}
Expand Down
66 changes: 7 additions & 59 deletions examples/a-walk-through-circuitpython.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -33,61 +33,15 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Welcome to Adafruit CircuitPython 0.9.5!\r",
"Welcome to Adafruit CircuitPython 2.2.1!\r",
"\r\n",
"\r",
"\r\n",
"Please visit learn.adafruit.com/category/circuitpython for project guides.\r",
"\r\n",
"\r",
"\r\n",
"Built in modules:\r",
"\r\n",
"\t__main__\r",
"\r\n",
"\tbuiltins\r",
"\r\n",
"\tmicropython\r",
"\r\n",
"\tarray\r",
"\r\n",
"\tucollections\r",
"\r\n",
"\tustruct\r",
"\r\n",
"\tmath\r",
"\r\n",
"\tsys\r",
"\r\n",
"\tgc\r",
"\r\n",
"\turandom\r",
"\r\n",
"\tmicrocontroller\r",
"\r\n",
"\tanalogio\r",
"\r\n",
"\tdigitalio\r",
"\r\n",
"\tpulseio\r",
"\r\n",
"\tbusio\r",
"\r\n",
"\tboard\r",
"\r\n",
"\tuos\r",
"\r\n",
"\ttime\r",
"\r\n",
"\tneopixel_write\r",
"\r\n",
"\tsamd\r",
"\r\n",
"\tusb_hid\r",
"\r\n",
"\ttouchio\r",
"\r\n",
"\tbitbangio\r",
"To list built-in modules please do `help(\"modules\")`.\r",
"\r\n",
"None\r\n"
]
Expand Down Expand Up @@ -117,9 +71,7 @@
{
"cell_type": "code",
"execution_count": 2,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# Hi... I'm a comment. When you see a '#' at the start\n",
Expand All @@ -140,11 +92,11 @@
"text": [
"object <module 'sys'> is of type module\r\n",
" __name__ -- sys\r\n",
" path -- ['', '/flash', '/flash/lib']\r\n",
" path -- ['', '/', '/lib', '.frozen']\r\n",
" argv -- []\r\n",
" version -- 3.4.0\r\n",
" version_info -- (3, 4, 0)\r\n",
" implementation -- (name='circuitpython', version=(0, 9, 5))\r\n",
" implementation -- (name='circuitpython', version=(2, 2, 1))\r\n",
" platform -- Atmel SAMD21\r\n",
" byteorder -- little\r\n",
" exit -- <function>\r\n",
Expand Down Expand Up @@ -178,9 +130,7 @@
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": [
"# MIT License\n",
Expand All @@ -193,9 +143,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": []
}
Expand Down
24 changes: 9 additions & 15 deletions examples/basics-versions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,16 @@
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {
"collapsed": true
},
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import sys"
]
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 2,
"metadata": {},
"outputs": [
{
Expand All @@ -39,14 +37,14 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 3,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"(name='circuitpython', version=(0, 9, 5))\r\n"
"(name='circuitpython', version=(2, 2, 1))\r\n"
]
}
],
Expand All @@ -56,7 +54,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 4,
"metadata": {},
"outputs": [
{
Expand All @@ -74,10 +72,8 @@
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {
"collapsed": true
},
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"# MIT License\n",
Expand All @@ -90,9 +86,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"metadata": {},
"outputs": [],
"source": []
}
Expand Down
Loading

0 comments on commit add0b66

Please sign in to comment.