<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://badge.emfcamp.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Marekventur</id>
	<title>EMF Badge - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://badge.emfcamp.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Marekventur"/>
	<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/wiki/Special:Contributions/Marekventur"/>
	<updated>2026-04-06T13:15:19Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Get_Started&amp;diff=388</id>
		<title>TiLDA MK4/Get Started</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Get_Started&amp;diff=388"/>
		<updated>2018-09-01T17:02:36Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: Created page with &amp;quot;= Get started =  Hacking your TiLDA Mk4 badge is easy. We've written it down step by step.   If something goes wrong, the badge can be reset to its out-of-...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Get started =&lt;br /&gt;
&lt;br /&gt;
Hacking your TiLDA Mk4 badge is easy. We've written it down step by step. &lt;br /&gt;
&lt;br /&gt;
If something goes wrong, the badge can be [[TiLDA_MK4/reset|reset]] to its out-of-the-box state, so do not be concerned about breaking anything.&lt;br /&gt;
&lt;br /&gt;
== 1. Connect to your computer ==&lt;br /&gt;
To get started you need to connect your badge to a computer. You can use any MicroUSB cable - the same type that charges most mobile phones nowadays. It doesn't matter whether the batter is plugged in or not, so don't worry about it.&lt;br /&gt;
&lt;br /&gt;
== 2. Connect to your badge ==&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
* Please follow the instruction under the &amp;quot;Windows&amp;quot; section on this page: https://docs.micropython.org/en/latest/pyboard/pyboard/tutorial/repl.html&lt;br /&gt;
* Once you've installed the driver and Putty and you've connected to your badge, press Control+C to stop the main badge app, and then you should be greeted by a line saying &amp;quot;Micropython&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== OSX ===&lt;br /&gt;
* Click the magnifying class in the top right of your screen and type &amp;lt;code&amp;gt;Terminal&amp;lt;/code&amp;gt; followed by Enter. A white terminal window should appear.&lt;br /&gt;
* type &amp;lt;code&amp;gt;screen /dev/tty.usbmodem*&amp;lt;/code&amp;gt; (The * is important, so don't let it out) and hit enter&lt;br /&gt;
* hit &amp;lt;code&amp;gt;control+c&amp;lt;/code&amp;gt;, if an error is displayed&lt;br /&gt;
* You should now be greeted by a line saying &amp;quot;Micropython&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Linux ===&lt;br /&gt;
* Open a terminal and type &amp;lt;code&amp;gt;screen /dev/xyz&amp;lt;/code&amp;gt; (todo: please add the correct path)&lt;br /&gt;
* You should now be greeted by a line saying &amp;quot;Micropython&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== What to do if this step doesn't work? ===&lt;br /&gt;
* Press the reset button at the back of your badge and try again&lt;br /&gt;
* Have a look at https://docs.micropython.org/en/latest/pyboard/pyboard/tutorial/repl.html for more information&lt;br /&gt;
&lt;br /&gt;
== 3. Your first line of Micropython ==&lt;br /&gt;
&lt;br /&gt;
* In your terminal (next to the &amp;gt;&amp;gt;&amp;gt;) type &amp;lt;code&amp;gt;print(1 + 1)&amp;lt;/code&amp;gt; followed by Enter&lt;br /&gt;
* You should see &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt; printed on the screen. Congratulations, you've just written your first line of micropython code!&lt;br /&gt;
* You can now close the terminal window (or Putty, if you're on Windows). Note: some serial terminals will not close when the badge is removed or powered off. You should close the serial terminal before plugging the badge back in, otherwise the serial terminal may not reconnect.&lt;br /&gt;
&lt;br /&gt;
== 4. Download some software you'll need ==&lt;br /&gt;
&lt;br /&gt;
You will be downloading some stuff now. It's probably be best if you create some folder somewhere so you don't end up with files all over your Desktop.&lt;br /&gt;
&lt;br /&gt;
Note you can copy files across from your computer to the badge, reset the badge and run the files though the menu, however these instructions make things a little easier.&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
* Python: Go to https://www.python.org/downloads/ and download python version 3.x. After the download is finished you can install it.&lt;br /&gt;
* Go to https://bootstrap.pypa.io/get-pip.py and save the file into your folder&lt;br /&gt;
* Hold shift, right click on the folder on, and click &amp;quot;open command window here&amp;quot;&lt;br /&gt;
* Now type &amp;lt;code&amp;gt;python get-pip.py&amp;lt;/code&amp;gt;&lt;br /&gt;
* After the install was successful please type &amp;lt;code&amp;gt;pip install pyserial pyusb&amp;lt;/code&amp;gt; followed by Enter.&lt;br /&gt;
&lt;br /&gt;
=== OSX / Linux ===&lt;br /&gt;
&lt;br /&gt;
* Python: Open a terminal and type &amp;lt;code&amp;gt;python --version&amp;lt;/code&amp;gt;. If you get a version number you're good to go, otherwise go to https://www.python.org/downloads/ and download Python version 3.x. After the download is finished you can install it.&lt;br /&gt;
* Go to https://bootstrap.pypa.io/get-pip.py and save the file into your folder&lt;br /&gt;
* Use a terminal to go to the folder you created ([http://www.macworld.com/article/2042378/master-the-command-line-navigating-files-and-folders.html this is how you do it]) and type &amp;lt;code&amp;gt;python get-pip.py&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now type &amp;lt;code&amp;gt;python get-pip.py&amp;lt;/code&amp;gt;&lt;br /&gt;
* After the install was successful please type &amp;lt;code&amp;gt;pip install pyserial pyusb&amp;lt;/code&amp;gt; followed by Enter&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* If you have problems install python, please use google, there are lots of good explanations out there&lt;br /&gt;
* For information about how to install &amp;lt;code&amp;gt;pip&amp;lt;/code&amp;gt; have a look here: https://pip.pypa.io/en/stable/installing/&lt;br /&gt;
&lt;br /&gt;
== 5. tilda_tools ==&lt;br /&gt;
&lt;br /&gt;
You need to clone our Mk4-Apps repository: https://github.com/emfcamp/Mk4-Apps&lt;br /&gt;
&lt;br /&gt;
You might find some tricks on how to do this here: https://badge.emfcamp.org/wiki/TiLDA_MK4/Badge_Store_Submissions#Submitting_your_badge_app_to_the_official_badge_store&lt;br /&gt;
&lt;br /&gt;
There's a python script calle &amp;quot;tilda_tools&amp;quot; in the repository. You can use it to do all sorts of stuff that is a bit complicated to do with the USB mass storage. &lt;br /&gt;
&lt;br /&gt;
To test it open &amp;quot;adhoc.py&amp;quot; and add the following line at the bottom:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ugfx.text(5, 5, &amp;quot;Hello World!&amp;quot;, ugfx.RED)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then run &amp;quot;./tilda_tools run adhoc.py&amp;quot; (or &amp;quot;python tilda_tools run adhoc.py&amp;quot; on Windows)&lt;br /&gt;
&lt;br /&gt;
Todo: test this on windows - what's the best way of running python scripts there?&lt;br /&gt;
&lt;br /&gt;
You should now see &amp;quot;Hello World!&amp;quot; on your screen.&lt;br /&gt;
&lt;br /&gt;
== 5. Your first app ==&lt;br /&gt;
Let's create an app you can put on your badge. &lt;br /&gt;
&lt;br /&gt;
* Open the folder you've downloaded from github - You will see other app folders like &amp;quot;badge_store&amp;quot; and &amp;quot;snake&amp;quot;.&lt;br /&gt;
* Create a folder called &amp;quot;my_app&amp;quot;. This is your new app.&lt;br /&gt;
* Open a text editor. On Windows you can search for &amp;lt;code&amp;gt;Notepad&amp;lt;/code&amp;gt;, on OSX there's one called &amp;lt;code&amp;gt;textedit&amp;lt;/code&amp;gt; and if you're on Linux you can probably find one by searching for &amp;quot;edit&amp;quot;. &lt;br /&gt;
* Copy the following and save it as &amp;lt;code&amp;gt;test.py&amp;lt;/code&amp;gt; in your folder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;quot;&amp;quot;&amp;quot;My first app&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
___name___         = &amp;quot;My app&amp;quot;&lt;br /&gt;
___license___      = &amp;quot;MIT&amp;quot;&lt;br /&gt;
___dependencies___ = [&amp;quot;ugfx_helper&amp;quot;]&lt;br /&gt;
&lt;br /&gt;
import ugfx_helper, ugfx&lt;br /&gt;
&lt;br /&gt;
ugfx_helper.init()&lt;br /&gt;
ugfx.clear()&lt;br /&gt;
&lt;br /&gt;
ugfx.text(5, 5, &amp;quot;Hello World&amp;quot;, ugfx.RED)&lt;br /&gt;
ugfx.fill_circle(100, 100, 30, ugfx.GREEN)&lt;br /&gt;
ugfx.fill_circle(200, 100, 30, ugfx.GREEN)&lt;br /&gt;
ugfx.area(80, 150, 140, 20, ugfx.GREEN)&lt;br /&gt;
ugfx.area(120, 170, 60, 20, ugfx.GREEN)&lt;br /&gt;
&lt;br /&gt;
while Buttons.is_pressed(Buttons.BTN_Menu):&lt;br /&gt;
    sleep.wfi() # This means sleep for a short while&lt;br /&gt;
&lt;br /&gt;
ugfx.clear()&lt;br /&gt;
app.restart_to_default()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now you can run &amp;quot;./tilda_tools app my_app&amp;quot; - Wait a few seconds and you should see your app working on the screen. &lt;br /&gt;
&lt;br /&gt;
It will now work even when the computer is disconnected. To load it you'll have to open it via the Launcher or use the settings app to make it your default app.&lt;br /&gt;
&lt;br /&gt;
== 6. Publish your app to the app library ==&lt;br /&gt;
&lt;br /&gt;
Now that you have your own smiley app, why not share it with others? &lt;br /&gt;
&lt;br /&gt;
See https://badge.emfcamp.org/wiki/TiLDA_MK4/Badge_Store_Submissions for more information&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=387</id>
		<title>TiLDA MK4</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=387"/>
		<updated>2018-09-01T16:42:30Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Connecting over USB */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_Mk4_Front_with_sponsors.png|right|500px|TiLDA Mk𝛿]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK4/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds. Release it when both the red and green LED are lit. If you got it correct both LEDs should flash a few times.&amp;lt;br&amp;gt;If this doesn't work you can [[TiLDA_MK4/Firmware_Update|update the badge firmware]]. If this doesn't work, please come and join us in #tilda on [https://freenode.net/ Freenode IRC]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. '''This doesn't always work on the first try, you might have to use &amp;quot;reset&amp;quot; to try a few times'''&lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button on the back below the display ribbon. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Settings&amp;quot; app&lt;br /&gt;
# &amp;quot;Change Name&amp;quot; and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select 'Badge Store' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Install&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU to find your newly installed app.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK4/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED to the right of the display ribbon on the back will extinguish when charging is complete.&lt;br /&gt;
&lt;br /&gt;
=== Calling and SMS ===&lt;br /&gt;
Yes your TiLDA Badge is also a mobile phone. To connect to the EMF mobile network insert the Hologram SIM supplied, load the &amp;quot;phone&amp;quot; app, select &amp;quot;Select Operator&amp;quot;, wait, wait some more, and a little longer, then select &amp;quot;EMF&amp;quot; or &amp;quot;23404&amp;quot;. Select &amp;quot;Auto&amp;quot; to use a public mobile network again.&lt;br /&gt;
&lt;br /&gt;
To find out your number on the EMF network select &amp;quot;Information&amp;quot; in the phone app. If &amp;quot;Operator&amp;quot; is not shown on the information screen then you have failed to connect to the network. If you are not given a number then wait a little longer and try again. You can read and send SMS messages with the &amp;quot;sms&amp;quot; app. You can also answer calls by pressing &amp;quot;Call&amp;quot; in any app, and end or reject a call using the &amp;quot;End&amp;quot; button at any time.&lt;br /&gt;
&lt;br /&gt;
=== Connecting over USB ===&lt;br /&gt;
By default, the software is in a loop. If you want to interact over the REPL you need to exit this. The easiest way is to press Ctrl-C.&lt;br /&gt;
&lt;br /&gt;
It's hard to press Ctrl-C in minicom, so on Linux this is easier to do with screen:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
screen /dev/tty.usbmodemTiLDA2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To exit screen, press Ctrl-A, then k, then y.&lt;br /&gt;
&lt;br /&gt;
The basic process is this:&lt;br /&gt;
&lt;br /&gt;
# Connect device to computer with usb&lt;br /&gt;
# Fire up minicom or screen&lt;br /&gt;
# Press reset button on device&lt;br /&gt;
# Hit Ctrl+C quickly and with vigour to get to the REPL before the UI comes up&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK4/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
If everything else absolutely fails, you can try following these instructions (advanced): [[TiLDA_MK4/Firmware_Update]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK4/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA_MK4/tilda-tools|tilda-tools]]''' - the one-stop interface for all your badge needs&lt;br /&gt;
* '''[[TiLDA MK4/Get Started|Step-by-step]]''' - to make it as easy as possible to get going&lt;br /&gt;
* '''[[TiLDA MK4/Run Code|3 Ways to run code on your TiLDA]]'''&lt;br /&gt;
* '''[[TiLDA MK4/Badge Store Submissions|Badge Store Submissions]]''' - Share your creations with others&lt;br /&gt;
* '''[[TiLDA MK4/Code Structure|Code Structure]]''' - How the python code is structured&lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK4/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Apps&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Backend (powers the badge store)&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK4/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK4/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK4/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK4/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK4/sensors|Sensors]]&lt;br /&gt;
* [[TiLDA MK4/sim800|SIM800]] (GSM/Phone/Bluetooth)&lt;br /&gt;
* [[TiLDA MK4/modtilda|import tilda]] (our custom micropython module)&lt;br /&gt;
* [[TiLDA MK4/spi|SPI]] SPI&lt;br /&gt;
* please add&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk4-Apps/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
=== Hardware ===&lt;br /&gt;
&lt;br /&gt;
Full hardware files are on GitHub [https://github.com/emfcamp/Mk4-Hardware]&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Texas Instruments [http://www.ti.com/product/MSP432E401Y MSP432E4 SimpleLink Microcontroller] (ARM Cortex-M4F @ 120MHz)&lt;br /&gt;
* Texas Instruments [http://www.ti.com/product/CC3120 CC3120 SimpleLink Wi-Fi® Network Processor]&lt;br /&gt;
* 256KB internal RAM / 8MB external SDRAM&lt;br /&gt;
* 1MB internal flash (firmware) / 1MB external flash (filesystem)&lt;br /&gt;
* [https://simcom.ee/modules/gsm-gprs/sim800c/ SIM800 Quad-band GSM/GPRS module] with Bluetooth support&lt;br /&gt;
* [https://cdn.hackaday.io/files/11178478239552/ER-TFT024-3_Datasheet.pdf 240x320 RGB screen]&lt;br /&gt;
* 2 [https://cdn-shop.adafruit.com/datasheets/WS2812B.pdf WS2812B RGB LEDs] (aka Neopixels) with a 3-pin header to connect your own (And this year they’re the right way up!)&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/hdc2080.pdf HDC2080 Low Power Humidity and Temperature Sensor]&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/tmp102.pdf TMP102 Digital Temperature Sensor]&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/opt3001.pdf OPT3001 Digital Ambient Light Sensor]&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/drv5055.pdf DRV5055 High Accuracy Bipolar Hall Effect Sensor]&lt;br /&gt;
* Speaker and Microphone&lt;br /&gt;
* 2000mAh Battery&lt;br /&gt;
* Onboard Ethernet (requires breakout)&lt;br /&gt;
* A [https://en.wikipedia.org/wiki/T9_(predictive_text) T9] number keypad and a joystick&lt;br /&gt;
* 2 [http://wiki.seeedstudio.com/Grove_System/ Seed Studio Grove headers] (one UART, one I²C)&lt;br /&gt;
* [https://learn.sparkfun.com/tutorials/sewing-with-conductive-thread Conductive thread] points and 0.1&amp;quot; header for power/UART/I2C/GPIO&lt;br /&gt;
* [https://hackaday.io/project/52950-defcon-26-shitty-add-ons Defcon 26 Shitty Add-Ons connector]&lt;br /&gt;
&lt;br /&gt;
Hardware files are available on GitHub [https://github.com/emfcamp/Mk4-Hardware].&lt;br /&gt;
&lt;br /&gt;
[[File:Sensor_graphic_-_with_fixed_transparency-01.png|left|500px|TiLDA Mk𝛿 Back]]&lt;br /&gt;
[[File:Sensor_graphic_-_with_fixed_transparency-02.png|left|500px|TiLDA Mk𝛿 Back]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Firmware_Update&amp;diff=379</id>
		<title>TiLDA MK4/Firmware Update</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Firmware_Update&amp;diff=379"/>
		<updated>2018-09-01T13:27:52Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TiLDA Mk4 is being actively developed. This doesn't just include changes on the python code (which can be updated via the Badge Store), but also for the firmware. Think of it as updating your operating system. Like an operating system update it's a bit more involved than just updating applications.&lt;br /&gt;
&lt;br /&gt;
Warning: You might potentially lose all your apps and settings.&lt;br /&gt;
&lt;br /&gt;
What you need:&lt;br /&gt;
* A computer with USB and a cable to your badge&lt;br /&gt;
* A checkout of Mk4-Apps. See [[TiLDA_MK4/Badge_Store_Submissions| here]] for how to do that&lt;br /&gt;
* You need to have http://dfu-util.sourceforge.net/ installed&lt;br /&gt;
&lt;br /&gt;
You should also look up how to use [[TiLDA_MK4/tilda-tools|tilda-tools]].&lt;br /&gt;
&lt;br /&gt;
This is how to do it:&lt;br /&gt;
* Put your Badge into DFU mode. To do so press the centre of the joystick and quickly press reset while doing so. Release the joystick afterwards.&lt;br /&gt;
* Run the firmware update:&lt;br /&gt;
** OSX / Linux: Open a terminal, go to your Mk4-Apps folder and run &amp;quot;./tilda_tools firmware-update&amp;quot;.&lt;br /&gt;
** Windows: Todo&lt;br /&gt;
* Follow the onscreen information&lt;br /&gt;
* Don't forget to press the reset buttons once the firmware update was successful.&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=377</id>
		<title>TiLDA MK4</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=377"/>
		<updated>2018-09-01T13:20:18Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_Mk4_Front_with_sponsors.png|right|500px|TiLDA Mk𝛿]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK4/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds. Release it when both the red and green LED are lit. If you got it correct both LEDs should flash a few times.&amp;lt;br&amp;gt;If this doesn't work you can [[TiLDA_MK4/Firmware_Update|update the badge firmware]]. If this doesn't work, please come and join us in #tilda on [https://freenode.net/ Freenode IRC]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. '''This doesn't always work on the first try, you might have to use &amp;quot;reset&amp;quot; to try a few times'''&lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button on the back below the display ribbon. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Settings&amp;quot; app&lt;br /&gt;
# &amp;quot;Change Name&amp;quot; and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select 'Badge Store' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Install&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU to find your newly installed app.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK4/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED to the right of the display ribbon on the back will extinguish when charging is complete.&lt;br /&gt;
&lt;br /&gt;
=== Calling and SMS ===&lt;br /&gt;
Yes your TiLDA Badge is also a mobile phone. To connect to the EMF mobile network insert the Hologram SIM supplied, load the &amp;quot;phone&amp;quot; app, select &amp;quot;Select Operator&amp;quot;, wait, wait some more, and a little longer, then select &amp;quot;EMF&amp;quot; or &amp;quot;23404&amp;quot;. Select &amp;quot;Auto&amp;quot; to use a public mobile network again.&lt;br /&gt;
&lt;br /&gt;
To find out your number on the EMF network select &amp;quot;Information&amp;quot; in the phone app. If &amp;quot;Operator&amp;quot; is not shown on the information screen then you have failed to connect to the network. You can read and send SMS messages with the &amp;quot;sms&amp;quot; app. You can also answer calls by pressing &amp;quot;Call&amp;quot; in any app, and end or reject a call using the &amp;quot;End&amp;quot; button at any time.&lt;br /&gt;
&lt;br /&gt;
=== Connecting over USB ===&lt;br /&gt;
By default, the software is in a loop. If you want to interact over the REPL you need to exit this. The easiest way is to press Ctrl-C.&lt;br /&gt;
&lt;br /&gt;
It's hard to press Ctrl-C in minicom, so on Linux this is easier to do with screen:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
screen /dev/ttyACM0 115200&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To exit screen, press Ctrl-A, then k, then y.&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK4/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
If everything else absolutely fails, you can try following these instructions (advanced): [[TiLDA_MK4/Firmware_Update]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK4/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA_MK4/tilda-tools|tilda-tools]]''' - the one-stop interface for all your badge needs&lt;br /&gt;
* '''[[TiLDA MK4/Get Started|Step-by-step]]''' - to make it as easy as possible to get going&lt;br /&gt;
* '''[[TiLDA MK4/Run Code|3 Ways to run code on your TiLDA]]'''&lt;br /&gt;
* '''[[TiLDA MK4/Badge Store Submissions|Badge Store Submissions]]''' - Share your creations with others&lt;br /&gt;
* '''[[TiLDA MK4/Code Structure|Code Structure]]''' - How the python code is structured&lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK4/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Apps&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Backend (powers the badge store)&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK4/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK4/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK4/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK4/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK4/sensors|Sensors]]&lt;br /&gt;
* [[TiLDA MK4/sim800|SIM800]] (GSM/Phone/Bluetooth)&lt;br /&gt;
* [[TiLDA MK4/modtilda|import tilda]] (our custom micropython module)&lt;br /&gt;
* [[TiLDA MK4/spi|SPI]] SPI&lt;br /&gt;
* please add&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk4-Apps/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
=== Hardware ===&lt;br /&gt;
&lt;br /&gt;
Full hardware files are on GitHub [https://github.com/emfcamp/Mk4-Hardware]&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Texas Instruments [http://www.ti.com/product/MSP432E401Y MSP432E4 SimpleLink Microcontroller] (ARM Cortex-M4F @ 120MHz)&lt;br /&gt;
* Texas Instruments [http://www.ti.com/product/CC3120 CC3120 SimpleLink Wi-Fi® Network Processor]&lt;br /&gt;
* 256KB internal RAM / 8MB external SDRAM&lt;br /&gt;
* 1MB internal flash (firmware) / 1MB external flash (filesystem)&lt;br /&gt;
* [https://simcom.ee/modules/gsm-gprs/sim800c/ SIM800 Quad-band GSM/GPRS module] with Bluetooth support&lt;br /&gt;
* [https://cdn.hackaday.io/files/11178478239552/ER-TFT024-3_Datasheet.pdf 240x320 RGB screen]&lt;br /&gt;
* 2 [https://cdn-shop.adafruit.com/datasheets/WS2812B.pdf WS2812B RGB LEDs] (aka Neopixels) with a 3-pin header to connect your own (And this year they’re the right way up!)&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/hdc2080.pdf HDC2080 Low Power Humidity and Temperature Sensor]&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/tmp102.pdf TMP102 Digital Temperature Sensor]&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/opt3001.pdf OPT3001 Digital Ambient Light Sensor]&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/drv5055.pdf DRV5055 High Accuracy Bipolar Hall Effect Sensor]&lt;br /&gt;
* Speaker and Microphone&lt;br /&gt;
* 2000mAh Battery&lt;br /&gt;
* Onboard Ethernet (requires breakout)&lt;br /&gt;
* A [https://en.wikipedia.org/wiki/T9_(predictive_text) T9] number keypad and a joystick&lt;br /&gt;
* 2 [http://wiki.seeedstudio.com/Grove_System/ Seed Studio Grove headers] (one UART, one I²C)&lt;br /&gt;
* [https://learn.sparkfun.com/tutorials/sewing-with-conductive-thread Conductive thread] points and 0.1&amp;quot; header for power/UART/I2C/GPIO&lt;br /&gt;
* [https://hackaday.io/project/52950-defcon-26-shitty-add-ons Defcon 26 Shitty Add-Ons connector]&lt;br /&gt;
&lt;br /&gt;
Hardware files are available on GitHub [https://github.com/emfcamp/Mk4-Hardware].&lt;br /&gt;
&lt;br /&gt;
[[File:Sensor_graphic_-_with_fixed_transparency-01.png|left|500px|TiLDA Mk𝛿 Back]]&lt;br /&gt;
[[File:Sensor_graphic_-_with_fixed_transparency-02.png|left|500px|TiLDA Mk𝛿 Back]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=376</id>
		<title>TiLDA MK4</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=376"/>
		<updated>2018-09-01T13:19:28Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_Mk4_Front_with_sponsors.png|right|500px|TiLDA Mk𝛿]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK4/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds. Release it when both the red and green LED are lit. If you got it correct both LEDs should flash a few times.&amp;lt;br&amp;gt;If this doesn't work you can [[TiLDA_MK4/Firmware_Update|update the badge firmware]]. If this doesn't work, please come and join us in #tilda on [https://freenode.net/ Freenode IRC]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. '''This doesn't always work on the first try, you might have to use &amp;quot;reset&amp;quot; to try a few times'''&lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button on the back below the display ribbon. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Settings&amp;quot; app&lt;br /&gt;
# &amp;quot;Change Name&amp;quot; and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select 'Badge Store' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Install&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU to find your newly installed app.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK4/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED to the right of the display ribbon on the back will extinguish when charging is complete.&lt;br /&gt;
&lt;br /&gt;
=== Calling and SMS ===&lt;br /&gt;
Yes your TiLDA Badge is also a mobile phone. To connect to the EMF mobile network insert the Hologram SIM supplied, load the &amp;quot;phone&amp;quot; app, select &amp;quot;Select Operator&amp;quot;, wait, wait some more, and a little longer, then select &amp;quot;EMF&amp;quot; or &amp;quot;23404&amp;quot;. Select &amp;quot;Auto&amp;quot; to use a public mobile network again.&lt;br /&gt;
&lt;br /&gt;
To find out your number on the EMF network select &amp;quot;Information&amp;quot; in the phone app. If &amp;quot;Operator&amp;quot; is not shown on the information screen then you have failed to connect to the network. You can read and send SMS messages with the &amp;quot;sms&amp;quot; app. You can also answer calls by pressing &amp;quot;Call&amp;quot; in any app, and end or reject a call using the &amp;quot;End&amp;quot; button at any time.&lt;br /&gt;
&lt;br /&gt;
=== Connecting over USB ===&lt;br /&gt;
By default, the software is in a loop. If you want to interact over the REPL you need to exit this. The easiest way is to press Ctrl-C.&lt;br /&gt;
&lt;br /&gt;
It's hard to press Ctrl-C in minicom, so on Linux this is easier to do with screen:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
screen /dev/ttyACM0 115200&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To exit screen, press Ctrl-A, then k, then y.&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK4/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
If everything else absolutely fails, you can try following these instructions (advanced): [[TiLDA_MK4/Firmware_Update]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK4/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA_MK4/tilda-tools|tilda-tools]]''' - the one-stop interface for all your badge needs&lt;br /&gt;
* '''[[TiLDA MK4/Get Started|Step-by-step]]''' - to make it as easy as possible to get going&lt;br /&gt;
* '''[[TiLDA MK4/Run Code|3 Ways to run code on your TiLDA]]'''&lt;br /&gt;
* '''[[TiLDA MK4/Badge Store Submissions|Badge Store Submissions]]''' - Share your creations with others&lt;br /&gt;
* '''[[TiLDA MK4/Code Structure|Code Structure]]''' - How the python code is structured&lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK4/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Apps&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Backend (powers the badge store)&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK4/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK4/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK4/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK4/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK4/sensors|Sensors]]&lt;br /&gt;
* [[TiLDA MK4/sim800|SIM800]] (GSM/Phone/Bluetooth)&lt;br /&gt;
* [[TiLDA MK4/modtilda|import tilda]] (our custom micropython module)&lt;br /&gt;
* [[TiLDA MK4/spi|SPI]] SPI&lt;br /&gt;
* please add&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk4-Apps/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
=== Hardware ===&lt;br /&gt;
&lt;br /&gt;
Full hardware files are on GitHub [https://github.com/emfcamp/Mk4-Hardware]&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Texas Instruments [http://www.ti.com/product/MSP432E401Y MSP432E4 SimpleLink Microcontroller] (ARM Cortex-M4F @ 120MHz)&lt;br /&gt;
* Texas Instruments [http://www.ti.com/product/CC3120 CC3120 SimpleLink Wi-Fi® Network Processor]&lt;br /&gt;
* 256KB internal RAM / 8MB external SDRAM&lt;br /&gt;
* 1MB internal flash (firmware) / 1MB external flash (filesystem)&lt;br /&gt;
* [https://simcom.ee/modules/gsm-gprs/sim800c/ SIM800 Quad-band GSM/GPRS module] with Bluetooth support&lt;br /&gt;
* [https://cdn.hackaday.io/files/11178478239552/ER-TFT024-3_Datasheet.pdf 240x320 RGB screen]&lt;br /&gt;
* 2 [https://cdn-shop.adafruit.com/datasheets/WS2812B.pdf WS2812B RGB LEDs] (aka Neopixels) with a 3-pin header to connect your own (And this year they’re the right way up!)&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/hdc2080.pdf HDC2080 Low Power Humidity and Temperature Sensor]&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/tmp102.pdf TMP102 Digital Temperature Sensor]&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/opt3001.pdf OPT3001 Digital Ambient Light Sensor]&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/drv5055.pdf DRV5055 High Accuracy Bipolar Hall Effect Sensor]&lt;br /&gt;
* Speaker and Microphone&lt;br /&gt;
* 2000mAh Battery&lt;br /&gt;
* Onboard Ethernet (requires breakout)&lt;br /&gt;
* A [https://en.wikipedia.org/wiki/T9_(predictive_text) T9] number keypad and a joystick&lt;br /&gt;
* 2 [http://wiki.seeedstudio.com/Grove_System/ Seed Studio Grove headers] (one UART, one I²C)&lt;br /&gt;
* [https://learn.sparkfun.com/tutorials/sewing-with-conductive-thread Conductive thread] points and 0.1&amp;quot; header for power/UART/I2C/GPIO&lt;br /&gt;
* [https://hackaday.io/project/52950-defcon-26-shitty-add-ons Defcon 26 Shitty Add-Ons connector]&lt;br /&gt;
&lt;br /&gt;
Hardware files are available on GitHub [https://github.com/emfcamp/Mk4-Hardware].&lt;br /&gt;
&lt;br /&gt;
[[File:Sensor_graphic_-_with_fixed_transparency-01.png|left|500px|TiLDA Mk𝛿 Back]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Run_Code&amp;diff=371</id>
		<title>TiLDA MK4/Run Code</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Run_Code&amp;diff=371"/>
		<updated>2018-09-01T12:05:26Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Use Mk4-Apps tilda_tools */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Through the REPL ==&lt;br /&gt;
* Todo: Please write how to do that on different operating systems&lt;br /&gt;
* todo: how to use a REPL&lt;br /&gt;
== Use the &amp;quot;mass storage&amp;quot; app ==&lt;br /&gt;
* easy to do&lt;br /&gt;
* make sure to safely eject every time&lt;br /&gt;
* has a tendency to corrupt the filesystem - link to reset instructions&lt;br /&gt;
* hard to debug errors&lt;br /&gt;
* todo: add more information&lt;br /&gt;
== Use Mk4-Apps tilda_tools ==&lt;br /&gt;
* Probably most convenient, but a bit more involved:&lt;br /&gt;
* You can use &amp;quot;./tilda_tools run &amp;lt;file.py&amp;gt;&amp;quot; to run code without copying anything, but if you want to make sure you have all your libraries updated use &amp;quot;./tilda_tools app my_app&amp;quot; instead.&lt;br /&gt;
* https://badge.emfcamp.org/wiki/TiLDA_MK4/tilda-tools&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Run_Code&amp;diff=370</id>
		<title>TiLDA MK4/Run Code</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Run_Code&amp;diff=370"/>
		<updated>2018-09-01T11:52:05Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: Created page with &amp;quot; == Through the REPL == * Todo: Please write how to do that on different operating systems * todo: how to use a REPL == Use the &amp;quot;mass storage&amp;quot; app == * easy to do * make sure...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Through the REPL ==&lt;br /&gt;
* Todo: Please write how to do that on different operating systems&lt;br /&gt;
* todo: how to use a REPL&lt;br /&gt;
== Use the &amp;quot;mass storage&amp;quot; app ==&lt;br /&gt;
* easy to do&lt;br /&gt;
* make sure to safely eject every time&lt;br /&gt;
* has a tendency to corrupt the filesystem - link to reset instructions&lt;br /&gt;
* hard to debug errors&lt;br /&gt;
* todo: add more information&lt;br /&gt;
== Use Mk4-Apps tilda_tools ==&lt;br /&gt;
* Probably most convenient, but a bit more involved:&lt;br /&gt;
* https://badge.emfcamp.org/wiki/TiLDA_MK4/tilda-tools&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=365</id>
		<title>TiLDA MK4</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=365"/>
		<updated>2018-09-01T10:00:51Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Basic usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_Mk4_Front_with_sponsors.png|right|500px|TiLDA Mk𝛿]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK4/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds. Release it when both the red and green LED are lit. If you got it correct both LEDs should flash a few times.&amp;lt;br&amp;gt;If this doesn't work you can [[TiLDA_MK4/Firmware_Update|update the badge firmware]]. If this doesn't work, please come and join us in #tilda on [https://freenode.net/ Freenode IRC]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. '''This doesn't always work on the first try, you might have to use &amp;quot;reset&amp;quot; to try a few times'''&lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button on the back below the display ribbon. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Settings&amp;quot; app&lt;br /&gt;
# &amp;quot;Change Name&amp;quot; and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select 'Badge Store' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Install&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU to find your newly installed app.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK4/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED to the right of the display ribbon on the back will extinguish when charging is complete.&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK4/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
If everything else absolutely fails, you can try following these instructions (advanced): [[TiLDA_MK4/Firmware_Update]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK4/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA_MK4/tilda-tools|tilda-tools]]''' - the one-stop interface for all your badge needs&lt;br /&gt;
* '''[[TiLDA MK4/Get Started|Step-by-step]]''' - to make it as easy as possible to get going&lt;br /&gt;
* '''[[TiLDA MK4/Run Code|3 Ways to run code on your TiLDA]]'''&lt;br /&gt;
* '''[[TiLDA MK4/Badge Store Submissions|Badge Store Submissions]]''' - Share your creations with others&lt;br /&gt;
* '''[[TiLDA MK4/Code Structure|Code Structure]]''' - How the python code is structured&lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK4/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Apps&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Backend (powers the badge store)&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK4/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK4/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK4/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK4/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK4/sensors|Sensors]]&lt;br /&gt;
* [[TiLDA MK4/sim800|SIM800]] (GSM/Phone/Bluetooth)&lt;br /&gt;
* [[TiLDA MK4/modtilda|import tilda]] (our custom micropython module)&lt;br /&gt;
* [[TiLDA MK4/spi|SPI]] SPI&lt;br /&gt;
* please add&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk4-Apps/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
=== Hardware ===&lt;br /&gt;
&lt;br /&gt;
Full hardware files are on GitHub [https://github.com/emfcamp/Mk4-Hardware]&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Texas Instruments [http://www.ti.com/product/MSP432E401Y MSP432E4 SimpleLink Microcontroller] (ARM Cortex-M4F @ 120MHz)&lt;br /&gt;
* Texas Instruments [http://www.ti.com/product/CC3120 CC3120 SimpleLink Wi-Fi® Network Processor]&lt;br /&gt;
* 256KB internal RAM / 8MB external SDRAM&lt;br /&gt;
* 1MB internal flash (firmware) / 1MB external flash (filesystem)&lt;br /&gt;
* [https://simcom.ee/modules/gsm-gprs/sim800c/ SIM800 Quad-band GSM/GPRS module] with Bluetooth support&lt;br /&gt;
* [https://cdn.hackaday.io/files/11178478239552/ER-TFT024-3_Datasheet.pdf 240x320 RGB screen]&lt;br /&gt;
* 2 [https://cdn-shop.adafruit.com/datasheets/WS2812B.pdf WS2812B RGB LEDs] (aka Neopixels) with a 3-pin header to connect your own (And this year they’re the right way up!)&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/hdc2080.pdf HDC2080 Low Power Humidity and Temperature Sensor]&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/tmp102.pdf TMP102 Digital Temperature Sensor]&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/opt3001.pdf OPT3001 Digital Ambient Light Sensor]&lt;br /&gt;
* Texas Instruments [http://www.ti.com/lit/ds/symlink/drv5055.pdf DRV5055 High Accuracy Bipolar Hall Effect Sensor]&lt;br /&gt;
* Speaker and Microphone&lt;br /&gt;
* 2000mAh Battery&lt;br /&gt;
* Onboard Ethernet (requires breakout)&lt;br /&gt;
* A [https://en.wikipedia.org/wiki/T9_(predictive_text) T9] number keypad and a joystick&lt;br /&gt;
* 2 [http://wiki.seeedstudio.com/Grove_System/ Seed Studio Grove headers] (one UART, one I²C)&lt;br /&gt;
* [https://learn.sparkfun.com/tutorials/sewing-with-conductive-thread Conductive thread] points and 0.1&amp;quot; header for power/UART/I2C/GPIO&lt;br /&gt;
* [https://hackaday.io/project/52950-defcon-26-shitty-add-ons Defcon 26 Shitty Add-Ons connector]&lt;br /&gt;
&lt;br /&gt;
Hardware files are available on GitHub [https://github.com/emfcamp/Mk4-Hardware].&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=File:TiLDA_Mk4_Front_with_sponsors.png&amp;diff=340</id>
		<title>File:TiLDA Mk4 Front with sponsors.png</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=File:TiLDA_Mk4_Front_with_sponsors.png&amp;diff=340"/>
		<updated>2018-08-30T11:51:06Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: Marekventur uploaded a new version of File:TiLDA Mk4 Front with sponsors.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Badge_Store_Submissions&amp;diff=325</id>
		<title>TiLDA MK4/Badge Store Submissions</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Badge_Store_Submissions&amp;diff=325"/>
		<updated>2018-08-29T17:48:53Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Packaging up your badge app for submission to the store */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Todo: Please elaborate on these steps&lt;br /&gt;
&lt;br /&gt;
== Rules for apps in the official badge store ==&lt;br /&gt;
&lt;br /&gt;
* App has to be &amp;quot;Rated G: General Audiences – all ages admitted&amp;quot;&lt;br /&gt;
* App should not be of malicious nature&lt;br /&gt;
* App complies with EMF's [https://www.emfcamp.org/code-of-conduct Code of Conduct]&lt;br /&gt;
* No code/image hot-loading without good reasons (since it might be change after the review process)&lt;br /&gt;
* It's fine for people to improve on Apps other have written. Likewise, if you submit an App, be aware that others can and will make changes to it.&lt;br /&gt;
&lt;br /&gt;
== Packaging up your badge app for submission to the store ==&lt;br /&gt;
&lt;br /&gt;
Every app becomes a new folder in the root of the Mk4-App GitHub repository. So if you create a &amp;quot;snake&amp;quot; app, you need to put your program files in a folder called &amp;quot;snake&amp;quot; with at least a &amp;quot;main.py&amp;quot; in it.&lt;br /&gt;
&lt;br /&gt;
App names need to be unique (the folder structure enforces that). App folders can contain multiple files (python and non python), but at a minimum &amp;quot;main.py&amp;quot; with the correct headers is required.&lt;br /&gt;
&lt;br /&gt;
Plesae verify that your apps folder structure is correct by running &amp;quot;./tilda_tools validate&amp;quot; (this works without a badge) before submitting it to the badge app store as the validations is also run by Travis to check pull requests.&lt;br /&gt;
&lt;br /&gt;
=== Headers ===&lt;br /&gt;
&lt;br /&gt;
main.py headers:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
___name___         = &amp;quot;&amp;lt;your_app_name&amp;gt;&amp;quot;&lt;br /&gt;
___license___      = &amp;quot;MIT&amp;quot;&lt;br /&gt;
___dependencies___ = [&amp;quot;wifi&amp;quot;, &amp;quot;http&amp;quot;, &amp;quot;ugfx_helper&amp;quot;, &amp;quot;sleep&amp;quot;]&lt;br /&gt;
___categories___   = [&amp;quot;&amp;lt;see below&amp;gt;&amp;quot;]&lt;br /&gt;
___bootstrapped___ = True # Whether or not apps get downloaded on first install. Defaults to &amp;quot;False&amp;quot;, mostly likely you won't have to use this at all.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please use one of these categories:&lt;br /&gt;
* System&lt;br /&gt;
* Homescreens&lt;br /&gt;
* Games&lt;br /&gt;
* Sound&lt;br /&gt;
* EMF&lt;br /&gt;
* Villages&lt;br /&gt;
* Phone&lt;br /&gt;
* LEDs&lt;br /&gt;
* Sensors&lt;br /&gt;
* Demo&lt;br /&gt;
* Other&lt;br /&gt;
&lt;br /&gt;
== Submitting your badge app to the official badge store ==&lt;br /&gt;
&lt;br /&gt;
* Create a GitHub account [https://github.com/join]&lt;br /&gt;
* Download and install git on your local computer [https://git-scm.com/downloads]&lt;br /&gt;
* Set up git on your local computer with your username and email address (link to set up user and email)&lt;br /&gt;
* Fork the emfcamp/Mk4-Apps repo (link)&lt;br /&gt;
* Clone '''your''' GitHub repo to your computer (link) (maybe mention https://desktop.github.com/ ?)&lt;br /&gt;
* Add your app to your local repo (link)&lt;br /&gt;
* Create a Pull Request (link)&lt;br /&gt;
&lt;br /&gt;
* Over time, your GitHub report will get out of sync with the changes that have been made to the emfcamp/Mk4-Apps repo so you will need to update your GitHub repo (link)&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Badge_Store_Submissions&amp;diff=304</id>
		<title>TiLDA MK4/Badge Store Submissions</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Badge_Store_Submissions&amp;diff=304"/>
		<updated>2018-08-29T10:46:01Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Rules for apps in the official badge store */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Todo: Please elaborate on these steps&lt;br /&gt;
&lt;br /&gt;
* Create github account&lt;br /&gt;
* clone repo (maybe mention https://desktop.github.com/ ?)&lt;br /&gt;
* create an app&lt;br /&gt;
* send PR&lt;br /&gt;
&lt;br /&gt;
== Rules for apps in the official badge store ==&lt;br /&gt;
&lt;br /&gt;
* App has to be &amp;quot;Rated G: General Audiences – all ages admitted&amp;quot;&lt;br /&gt;
* App should not be of malicious nature&lt;br /&gt;
* App complies with EMF's [https://www.emfcamp.org/code-of-conduct Code of Conduct]&lt;br /&gt;
* No code/image hot-loading without good reasons (since it might be change after the review process)&lt;br /&gt;
* It's fine for people to improve on Apps other have written. Likewise, if you submit an App, be aware that others can and will make changes to it.&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=303</id>
		<title>TiLDA MK4</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=303"/>
		<updated>2018-08-29T10:35:10Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Hacking your badge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_Mk4_Front_with_sponsors.png|right|500px|TiLDA Mk𝛿]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK4/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds. Release it when both the red and green LED are lit. If you got it correct both LEDs should flash a few times.&amp;lt;br&amp;gt;If this doesn't work you can [[TiLDA_MK4/Firmware_Update|update the badge firmware]]. If this doesn't work, please come and join us in #tilda on [https://freenode.net/ Freenode IRC]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Settings&amp;quot; app&lt;br /&gt;
# &amp;quot;Change Name&amp;quot; and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select 'Badge Store' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Install&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU to find your newly installed app. &lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK4/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete [todo: is this still correct?]&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK4/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
If everything else absolutely fails, you can try following these instructions (advanced): [[TiLDA_MK4/Firmware_Update]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK4/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA_MK4/tilda-tools|tilda-tools]]''' - the one-stop interface for all your badge needs&lt;br /&gt;
* '''[[TiLDA MK4/Get Started|Step-by-step]]''' - to make it as easy as possible to get going&lt;br /&gt;
* '''[[TiLDA MK4/Run Code|3 Ways to run code on your TiLDA]]'''&lt;br /&gt;
* '''[[TiLDA MK4/App Store Submissions|App Store Submissions]]''' - Share your creations with others&lt;br /&gt;
* '''[[TiLDA MK4/Code Structure|Code Structure]]''' - How the python code is structured&lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK4/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Apps&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Backend (powers the badge store)&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK4/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK4/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK4/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK4/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK4/sensors|Sensors]]&lt;br /&gt;
* [[TiLDA MK3/sim800|SIM800]] (GSM/Phone/Bluetooth)&lt;br /&gt;
* [[TiLDA MK3/modtilda|import tilda]] (our custom micropython module)&lt;br /&gt;
* [[TiLDA MK4/spi|SPI]] SPI&lt;br /&gt;
* please add&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk4-Apps/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
=== Hardware ===&lt;br /&gt;
&lt;br /&gt;
Full hardware files are on GitHub [https://github.com/emfcamp/Mk4-Hardware]&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Texas Instruments MSP432E4 SimpleLink Microcontroller (ARM Cortex-M4F @ 120MHz)&lt;br /&gt;
* Texas Instruments CC3120 SimpleLink Wi-Fi® Network Processor&lt;br /&gt;
* 256KB internal RAM / 8MB external SDRAM&lt;br /&gt;
* 1MB internal flash (firmware) / 1MB external flash (filesystem)&lt;br /&gt;
* SIM800 Quad-band GSM/GPRS module with Bluetooth support&lt;br /&gt;
* 240x320 RGB screen&lt;br /&gt;
* 2 WS2812B RGB LEDs (aka Neopixels) with a 3-pin header to connect your own (And this year they’re the right way up!)&lt;br /&gt;
* Texas Instruments HDC2080 Low Power Humidity and Temperature Sensor&lt;br /&gt;
* Texas Instruments TMP102 Digital Temperature Sensor&lt;br /&gt;
* Texas Instruments OPT3001 Digital Ambient Light Sensor&lt;br /&gt;
* Texas Instruments DRV5055 High Accuracy Bipolar Hall Effect Sensor&lt;br /&gt;
* Speaker and Microphone&lt;br /&gt;
* 2000mAh Battery&lt;br /&gt;
* Onboard Ethernet (requires breakout)&lt;br /&gt;
* A T9 number keypad and a joystick&lt;br /&gt;
* 2 Seed Studio Grove headers (one UART, one I²C)&lt;br /&gt;
* Conductive thread points and 0.1&amp;quot; header for power/UART/I2C/GPIO&lt;br /&gt;
* Defcon 26 Shitty Add-Ons connector&lt;br /&gt;
(todo: please add links from http://blog.emfcamp.org/post/177423823788/tilda-mk4-the-emf-2018-badge)&lt;br /&gt;
&lt;br /&gt;
Hardware files are available on GitHub [https://github.com/emfcamp/Mk4-Hardware].&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=302</id>
		<title>TiLDA MK4</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=302"/>
		<updated>2018-08-29T10:31:32Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Hacking your badge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_Mk4_Front_with_sponsors.png|right|500px|TiLDA Mk𝛿]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK4/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds. Release it when both the red and green LED are lit. If you got it correct both LEDs should flash a few times.&amp;lt;br&amp;gt;If this doesn't work you can [[TiLDA_MK4/Firmware_Update|update the badge firmware]]. If this doesn't work, please come and join us in #tilda on [https://freenode.net/ Freenode IRC]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Settings&amp;quot; app&lt;br /&gt;
# &amp;quot;Change Name&amp;quot; and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select 'Badge Store' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Install&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU to find your newly installed app. &lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK4/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete [todo: is this still correct?]&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK4/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
If everything else absolutely fails, you can try following these instructions (advanced): [[TiLDA_MK4/Firmware_Update]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK4/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK4/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK4/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
* [[TiLDA MK4/App Store Submissions|App Store Submissions]]&lt;br /&gt;
* [[TiLDA_MK4/tilda-tools|tilda-tools]] - the one-stop interface for all your badge needs&lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK4/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK4/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Apps&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Backend (powers the badge store)&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK4/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK4/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK4/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK4/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK4/sensors|Sensors]]&lt;br /&gt;
* [[TiLDA MK3/sim800|SIM800]] (GSM/Phone/Bluetooth)&lt;br /&gt;
* [[TiLDA MK3/modtilda|import tilda]] (our custom micropython module)&lt;br /&gt;
* [[TiLDA MK4/spi|SPI]] SPI&lt;br /&gt;
* please add&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk4-Apps/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
=== Hardware ===&lt;br /&gt;
&lt;br /&gt;
Full hardware files are on GitHub [https://github.com/emfcamp/Mk4-Hardware]&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Texas Instruments MSP432E4 SimpleLink Microcontroller (ARM Cortex-M4F @ 120MHz)&lt;br /&gt;
* Texas Instruments CC3120 SimpleLink Wi-Fi® Network Processor&lt;br /&gt;
* 256KB internal RAM / 8MB external SDRAM&lt;br /&gt;
* 1MB internal flash (firmware) / 1MB external flash (filesystem)&lt;br /&gt;
* SIM800 Quad-band GSM/GPRS module with Bluetooth support&lt;br /&gt;
* 240x320 RGB screen&lt;br /&gt;
* 2 WS2812B RGB LEDs (aka Neopixels) with a 3-pin header to connect your own (And this year they’re the right way up!)&lt;br /&gt;
* Texas Instruments HDC2080 Low Power Humidity and Temperature Sensor&lt;br /&gt;
* Texas Instruments TMP102 Digital Temperature Sensor&lt;br /&gt;
* Texas Instruments OPT3001 Digital Ambient Light Sensor&lt;br /&gt;
* Texas Instruments DRV5055 High Accuracy Bipolar Hall Effect Sensor&lt;br /&gt;
* Speaker and Microphone&lt;br /&gt;
* 2000mAh Battery&lt;br /&gt;
* Onboard Ethernet (requires breakout)&lt;br /&gt;
* A T9 number keypad and a joystick&lt;br /&gt;
* 2 Seed Studio Grove headers (one UART, one I²C)&lt;br /&gt;
* Conductive thread points and 0.1&amp;quot; header for power/UART/I2C/GPIO&lt;br /&gt;
* Defcon 26 Shitty Add-Ons connector&lt;br /&gt;
(todo: please add links from http://blog.emfcamp.org/post/177423823788/tilda-mk4-the-emf-2018-badge)&lt;br /&gt;
&lt;br /&gt;
Hardware files are available on GitHub [https://github.com/emfcamp/Mk4-Hardware].&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/tilda-tools&amp;diff=301</id>
		<title>TiLDA MK4/tilda-tools</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/tilda-tools&amp;diff=301"/>
		<updated>2018-08-29T10:30:06Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: Created page with &amp;quot;=tilda-tools=  * Todo: How to clone/download the Mk4 repo (link to general github page?) * Todo: List functionality from https://github.com/emfcamp/Mk4-Apps/blob/master/.devel...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=tilda-tools=&lt;br /&gt;
&lt;br /&gt;
* Todo: How to clone/download the Mk4 repo (link to general github page?)&lt;br /&gt;
* Todo: List functionality from https://github.com/emfcamp/Mk4-Apps/blob/master/.development/tilda_tools.py&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Firmware_Update&amp;diff=300</id>
		<title>TiLDA MK4/Firmware Update</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Firmware_Update&amp;diff=300"/>
		<updated>2018-08-29T10:28:48Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: Created page with &amp;quot;TiLDA Mk4 is being actively developed. This doesn't just include changes on the python code (which can be updated via the Badge Store), but also for the firmware. Think of it...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TiLDA Mk4 is being actively developed. This doesn't just include changes on the python code (which can be updated via the Badge Store), but also for the firmware. Think of it as updating your operating system. Like an operating system update it's a bit more involved than just updating applications.&lt;br /&gt;
&lt;br /&gt;
Warning: You might potentially lose all your apps and settings.&lt;br /&gt;
&lt;br /&gt;
What you need:&lt;br /&gt;
* A computer with USB and a cable to your badge&lt;br /&gt;
* A checkout of Mk4-Apps. See [[TiLDA_MK4/Badge_Store_Submissions| here]] for how to do that&lt;br /&gt;
* You need to have http://dfu-util.sourceforge.net/ installed&lt;br /&gt;
&lt;br /&gt;
You should also look up how to use [[TiLDA_MK4/tilda-tools|tilda-tools]].&lt;br /&gt;
&lt;br /&gt;
This is how to do it:&lt;br /&gt;
* Put your Badge into DFU mode. To do so press the joystick to the right (towards the screen) and quickly press reset while doing so. Release the joystick afterwards.&lt;br /&gt;
* Run the firmware update:&lt;br /&gt;
** OSX: Open a terminal, go to your Mk4-Apps folder and run &amp;quot;./tilda-tools firmware-update&amp;quot;.&lt;br /&gt;
** Windows: Todo&lt;br /&gt;
** Linux: Todo&lt;br /&gt;
* Follow the onscreen information&lt;br /&gt;
* Don't forget to press the reset buttons once the firmware update was successful.&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Badge_Store_Submissions&amp;diff=299</id>
		<title>TiLDA MK4/Badge Store Submissions</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Badge_Store_Submissions&amp;diff=299"/>
		<updated>2018-08-29T10:17:12Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Todo: Please elaborate on these steps&lt;br /&gt;
&lt;br /&gt;
* Create github account&lt;br /&gt;
* clone repo (maybe mention https://desktop.github.com/ ?)&lt;br /&gt;
* create an app&lt;br /&gt;
* send PR&lt;br /&gt;
&lt;br /&gt;
== Rules for apps in the official badge store ==&lt;br /&gt;
&lt;br /&gt;
* App has to be &amp;quot;Rated G: General Audiences – all ages admitted&amp;quot;&lt;br /&gt;
* App should not be of malicious nature&lt;br /&gt;
* App complies with EMF's [https://www.emfcamp.org/code-of-conduct Code of Conduct]&lt;br /&gt;
* No code/image hot-loading without good reasons (since it might be change after the review process)&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Badge_Store_Submissions&amp;diff=298</id>
		<title>TiLDA MK4/Badge Store Submissions</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Badge_Store_Submissions&amp;diff=298"/>
		<updated>2018-08-29T10:16:39Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Todo: Please elaborate on these steps&lt;br /&gt;
&lt;br /&gt;
* Create github account&lt;br /&gt;
* clone repo (maybe mention https://desktop.github.com/ ?)&lt;br /&gt;
* create an app&lt;br /&gt;
* send PR&lt;br /&gt;
&lt;br /&gt;
== Rules for apps in the official badge store ==&lt;br /&gt;
&lt;br /&gt;
* Has to be &amp;quot;Rated G: General Audiences – all ages admitted&amp;quot;&lt;br /&gt;
* Not be of malicious nature&lt;br /&gt;
* Complies with EMF's [https://www.emfcamp.org/code-of-conduct Code of Conduct]&lt;br /&gt;
* No code/image hot-loading without good reasons (since it might be change after the review process)&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Badge_Store_Submissions&amp;diff=297</id>
		<title>TiLDA MK4/Badge Store Submissions</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Badge_Store_Submissions&amp;diff=297"/>
		<updated>2018-08-29T10:16:17Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Todo: Please elaborate on these steps&lt;br /&gt;
&lt;br /&gt;
* Create github account&lt;br /&gt;
* clone repo (maybe mention https://desktop.github.com/ ?)&lt;br /&gt;
* create an app&lt;br /&gt;
* send PR&lt;br /&gt;
&lt;br /&gt;
# Ground rules for apps in the official badge store:&lt;br /&gt;
&lt;br /&gt;
* Has to be &amp;quot;Rated G: General Audiences – all ages admitted&amp;quot;&lt;br /&gt;
* Not be of malicious nature&lt;br /&gt;
* Complies with EMF's [https://www.emfcamp.org/code-of-conduct Code of Conduct]&lt;br /&gt;
* No code/image hot-loading without good reasons (since it might be change after the review process)&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Badge_Store_Submissions&amp;diff=296</id>
		<title>TiLDA MK4/Badge Store Submissions</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/Badge_Store_Submissions&amp;diff=296"/>
		<updated>2018-08-29T10:12:56Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: Created page with &amp;quot;Todo:  * Create github account * clone repo (maybe mention https://desktop.github.com/ ?) * create an app * send PR    # Ground rules for apps in the official badge store   *...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Todo:&lt;br /&gt;
&lt;br /&gt;
* Create github account&lt;br /&gt;
* clone repo (maybe mention https://desktop.github.com/ ?)&lt;br /&gt;
* create an app&lt;br /&gt;
* send PR&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Ground rules for apps in the official badge store &lt;br /&gt;
&lt;br /&gt;
* Has to be &lt;br /&gt;
* Has to be &amp;quot;Rated G: General Audiences – all ages admitted&amp;quot;&lt;br /&gt;
* Complies with EMF's [https://www.emfcamp.org/code-of-conduct COC]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/reset&amp;diff=295</id>
		<title>TiLDA MK4/reset</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/reset&amp;diff=295"/>
		<updated>2018-08-29T10:07:43Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: Created page with &amp;quot;Should your badge stop working there are these ways to fix it. Please make sure you have a backup of whatever you've been working on, you might lose all the data stored on you...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Should your badge stop working there are these ways to fix it. Please make sure you have a backup of whatever you've been working on, you might lose all the data stored on your badge.&lt;br /&gt;
&lt;br /&gt;
Todo: Is there an easier way? &lt;br /&gt;
&lt;br /&gt;
== Factory reset the badge== &lt;br /&gt;
Press and hold 'MENU' and then press the reset button on the back. Keep the MENU button held down, then release it when both the green and red LED are on. Both LEDs should flash for a few times. Wait a few seconds until the blinking has stopped and press reset again. &lt;br /&gt;
&lt;br /&gt;
After that you should finally get a screen saying &amp;quot;Downloading TiLDA software&amp;quot;. It should take less than a minute until the badge functionalities are restored, but you will have to re-install your apps.&lt;br /&gt;
&lt;br /&gt;
P.S. The micropython documentation on factory resetting is [http://docs.micropython.org/en/latest/pyboard/pyboard/tutorial/reset.html here]. On the TiLDA MK3 the USR button is the MENU button, and the orange LED is actually red.&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/ugfx&amp;diff=294</id>
		<title>TiLDA MK4/ugfx</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4/ugfx&amp;diff=294"/>
		<updated>2018-08-29T09:16:41Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: Created page with &amp;quot;The badge makes use of [http://ugfx.io uGFX] for providing drawing functions on the LCD. Most of this functionality is available through the micropython interface, and you may...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The badge makes use of [http://ugfx.io uGFX] for providing drawing functions on the LCD. Most of this functionality is available through the micropython interface, and you may wish to browse the [https://wiki.ugfx.io/index.php/Main_Page  uGFX documentation] for more details.&lt;br /&gt;
&lt;br /&gt;
To discover exactly which ugfx calls are available in micropython, see https://github.com/emfcamp/micropython/blob/tilda-master/stmhal/modugfx.c&lt;br /&gt;
&lt;br /&gt;
== Basic usage ==&lt;br /&gt;
&lt;br /&gt;
uGFX is comprised of 'widgets,' such as buttons and labels, and 'containers' which are used to group widgets.&lt;br /&gt;
&lt;br /&gt;
To create a button on the screen, use &amp;lt;code&amp;gt;ugfx.Button(x,y,width,height,text)&amp;lt;/code&amp;gt;, and a button will be drawn on the screen.&lt;br /&gt;
&lt;br /&gt;
As well as widgets, there are 'primitives' such as drawing circles and lines, which can be drawn anywhere on the screen or in a container.&lt;br /&gt;
For example &amp;lt;code&amp;gt;ugfx.circle(50,50,20,ugfx.RED)&amp;lt;/code&amp;gt; will draw a circle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Detailed documentation ==&lt;br /&gt;
&lt;br /&gt;
Note. all co-ordinates are from the top left (battery symbol) corner. All widgets are created from the &amp;quot;ugfx&amp;quot; package, eg: ugfx.Contailer().&lt;br /&gt;
&lt;br /&gt;
=== Colour format ===&lt;br /&gt;
&lt;br /&gt;
Internally, ugfx uses 565 format (5 bits for red and blue, 6 for green). Preset colours are available, for example '''ugfx.RED''', '''ugfx.ORANGE''', etc. To convert from 24 bit RGB format, use '''ugfx.html_color(0xRRGGBB)''' to return the 16 bit 565 format.&lt;br /&gt;
&lt;br /&gt;
=== Styles and Fonts ===&lt;br /&gt;
Use &amp;lt;code&amp;gt;ugfx.set_default_font(...)&amp;lt;/code&amp;gt; to change the font. The font options are:&lt;br /&gt;
* ''ugfx.FONT_SMALL''&lt;br /&gt;
* ''ugfx.FONT_MEDIUM''&lt;br /&gt;
* ''ugfx.FONT_MEDIUM_BOLD''&lt;br /&gt;
* ''ugfx.FONT_TITLE''&lt;br /&gt;
* ''ugfx.FONT_NAME''.&lt;br /&gt;
Note that widgets use the font which was default when they were created, while the ''container.text()'' primitive uses the font that was default when the container was created&lt;br /&gt;
&lt;br /&gt;
=== Containers ===&lt;br /&gt;
&lt;br /&gt;
    .Container(x, y, width, height {,style})  # the style is optional&lt;br /&gt;
&lt;br /&gt;
Containers can be used to group widgets together. They can also perform primitive drawing functions. When drawing widgets or primitives, the coordinates are relative to the top left corner of the container.&lt;br /&gt;
&lt;br /&gt;
Containers can be shown or hidden, and all the widgets will be redrawn. Containers can also be placed on top of other widgets. When the top container is hidden, the widgets below will be redrawn.&lt;br /&gt;
&lt;br /&gt;
Upon creation a style can be passed to a container, which will then be used by default by widgets created as part of that container. If no style is specified at creation, the current default style will be used.&lt;br /&gt;
&lt;br /&gt;
The following example shows  how to create a container, add an object and show it.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
c = ugfx.Container(100,100,200,100)&lt;br /&gt;
b = ugfx.Button(10, 10, 40, 30, &amp;quot;OK&amp;quot;, c)&lt;br /&gt;
c.show()            # the container will not be shown until this point&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Primitives ===&lt;br /&gt;
All primitives can be drawn anywhere on the screen with, for example &amp;lt;code&amp;gt;ugfx.circle(..)&amp;lt;/code&amp;gt;, or anywhere within a container, with &amp;lt;code&amp;gt;c=ugfx.Container(30,30,100,100); c.circle(..)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Clear ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.clear(colour = ugfx.WHITE)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
clears the screen to the specified colour. Warning, this is slow!&lt;br /&gt;
&lt;br /&gt;
==== Lines ====&lt;br /&gt;
&amp;lt;code&amp;gt;.line(&amp;lt;x1&amp;gt;, &amp;lt;y1&amp;gt;, &amp;lt;x2&amp;gt;, &amp;lt;y2&amp;gt;, &amp;lt;colour&amp;gt;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.thickline(&amp;lt;x1&amp;gt;, &amp;lt;y1&amp;gt;, &amp;lt;x2&amp;gt;, &amp;lt;y2&amp;gt;, &amp;lt;colour&amp;gt;, &amp;lt;width&amp;gt;, &amp;lt;round&amp;gt;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Draws a line from ''x1,y1'' to ''x2,y2'' using ''colour''. Thickline will draw a line or arbitrary width, with the option of rounded corners&lt;br /&gt;
&lt;br /&gt;
eg. ''ugfx.thickline(0,0,100,170,ugfx.YELLOW,7,0)''&lt;br /&gt;
&lt;br /&gt;
==== Circle ====&lt;br /&gt;
&amp;lt;code&amp;gt;.circle(x, y, diameter, colour)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.fill_circle(x, y, diameter, colour)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Draws a circle at ''x,y'' of &amp;lt;diameter&amp;gt; using ''colour'', either with a 1 pixel border or filling the area.&lt;br /&gt;
&lt;br /&gt;
eg. ''ugfx.circle(180,150,40,ugfx.RED)''&lt;br /&gt;
&lt;br /&gt;
==== Arc ====&lt;br /&gt;
&amp;lt;code&amp;gt;.arc(x, y, r, angle1, angle2, colour)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.fill_arc(x, y, r, angle1, angle2, colour)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Similar to the circle functions, however two angle parameters specify between which two angles drawing occurs&lt;br /&gt;
&lt;br /&gt;
==== Ellipse ====&lt;br /&gt;
&amp;lt;code&amp;gt;.ellipse(x, y, a, b, colour)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.fill_ellipse(x, y, a, b, colour)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Draws an ellipse at ''x,y'' of ''a'' width and ''b'' height using ''colour'', either with a 1 pixel border or filling the area.&lt;br /&gt;
&lt;br /&gt;
==== Rectangles ====&lt;br /&gt;
&amp;lt;code&amp;gt; .box(1, y, a, b, colour) &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt; .area(x, y, a, b, colour)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Draws a rectangle or filled rectangle at ''x,y'' of ''a'' width and ''b'' height using ''colour''.&lt;br /&gt;
&lt;br /&gt;
==== Polygon ====&lt;br /&gt;
&amp;lt;code&amp;gt; .polygon(x, y, array, colour) &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt; .fill_polygon(x, y, array, colour) &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Draws or fills a polygon starting at ''x,y'' using ''colour''. ''Array'' is an array of coordinates that specifies the corners.&lt;br /&gt;
&lt;br /&gt;
eg. ''ugfx.polygon(0,0, [ [0,20],[20,20],[20,0]], ugfx.RED)''&lt;br /&gt;
&lt;br /&gt;
==== Text ====&lt;br /&gt;
&amp;lt;code&amp;gt;.text(x, y, text, colour) &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Draws a text string ''text'' at ''x,y'' in ''colour''.&lt;br /&gt;
Note that a ugfx.text(..) call will take the default font, while container.text(..) will take the containers font.&lt;br /&gt;
&lt;br /&gt;
eg. ''ugfx.text(40,40,&amp;quot;My name is...&amp;quot;,ugfx.BLUE)''&lt;br /&gt;
&lt;br /&gt;
==== Other ====&lt;br /&gt;
&amp;lt;code&amp;gt;.width()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.height()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Gets the height or width of the screen ''ugfx.width()'' or container object ''c.width()''&lt;br /&gt;
&lt;br /&gt;
=== Widgets ===&lt;br /&gt;
&lt;br /&gt;
Widgets can be drawn anywhere on the screen, or within a container. The widgets take the optional parameter ''parent='' to set the parent container. Widgets can have their style set on creation, otherwise will inherit &lt;br /&gt;
&lt;br /&gt;
Widgets also accept input from the buttons. For example, the 'A' button can be 'attached' to an on-screen button, such that pressing the button on the badge causes the on-screen button to be redrawn in a depressed state. &lt;br /&gt;
&lt;br /&gt;
==== Common Widget methods ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.text([text])&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Gets or sets the text displayed by the widget.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.visible([show])&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Gets or sets the visibility of the badge. ''b.visible(0)'' will hide, and ''b.visible(1)'' will show.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.attach_input(button, function)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Attaches a physical button to a widget, so that the user can cause the widget to redraw, for example to scroll or become depressed.&lt;br /&gt;
&lt;br /&gt;
The input ''button'' specifies which button, with the options ugfx.BTN_A, ugfx.BTN_B, ugfx.BTN_MENU, ugfx.JOY_UP, ugfx.JOY_DOWN, ugfx.JOY_LEFT, ugfx.JOY_RIGHT.&lt;br /&gt;
&lt;br /&gt;
The input ''function'' specifies what the button actually does. For example, the list has three different functions: scroll up, scroll down, and select. Note that some widgets by default attach the joystick to the relevant functions. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.detach_input(function)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Detaches an input. See above for more details.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.destroy()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Frees up all the resources assoicated with the object. While the micropython garbage collector will clear any old objects, the graphics library also has its own memory area, which can become full if objects are not destroyed after they are needed.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.set_focus()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Gives focus to the widget instance. Normally this will draw a box around the widget, the colour is specified by the style.&lt;br /&gt;
&lt;br /&gt;
==== Button ==== &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt; b=ugfx.Button(x, y, w, h, text, *, parent=None, trigger=None, shape=ugfx.Button.RECT, style=None) &amp;lt;/code&amp;gt; (note: parameters after '*' are optional)&lt;br /&gt;
&lt;br /&gt;
Draws a button at ''x,y'' having width ''a'' and height ''b''. The option 'trigger' specifics which physical switch (if any) causes the display to be redrawn. The shape options are ''ugfx.Button.RECT'', ''ugfx.Button.ROUNDED'', ''ugfx.Button.ELLIPSE'', ''ugfx.Button.ARROW_UP'', ''ugfx.Button.ARROW_DOWN'', ''ugfx.Button.ARROW_LEFT', ''ugfx.Button.ARROW_RIGHT''.&lt;br /&gt;
&lt;br /&gt;
==== Textbox ====&lt;br /&gt;
&amp;lt;code&amp;gt; ugfx.Textbox(x, y, w, h, *, text=None, parent=None, maxlen=255})&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Draws a text edit-box which can take input from the on-screen keyboard. Will automatically accept key-presses from the keyboard, which will edit the text. The textbox needs to have focus using .set_focus() for it to receive the key-presses.&lt;br /&gt;
&lt;br /&gt;
==== Checkbox ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.Checkbox((x, y, w, h, text=None, parent=None, trigger=None, style=None)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.checked()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Get or set the checked state&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Label ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt; ugfx.Label(x, y, w, h, text, *, parent=None, style=None, justification=None)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A label displays text. Unlike the primitive text, this Label supports different justifications, wordwrap and changing text. The different justification options are ''ugfx.Label.LEFT'', ''ugfx.Label.RIGHT'', ''ugfx.Label.CENTER'', ''ugfx.Label.LEFTTOP'', ''ugfx.Label.RIGHTTOP'' and ''ugfx.Label.CENTERTOP''.&lt;br /&gt;
&lt;br /&gt;
==== List ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ugfx.List(x, y, w, h, *, parent=None, up=ugfx.JOY_UP, down=ugfx.JOY_DOWN, style=None)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.enable_draw()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.disable_draw()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.add_item(text)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.assign_image(index, image)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.remove_item(index)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.selected_text()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.selected_index()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.count()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Graph ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ugfx.Graph(x, y, w, h, origin_x, origin_y)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.show()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.hide()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.set_arrows(ugfx.Graph.ARROWS_X_POS | ugfx.Graph.ARROWS_Y_POS)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Set which axes have arrows and in which direction. In this example arrows are set for the x and y positive directions, with the following options available: ARROWS_X_POS, ARROWS_Y_POS, ARROWS_X_NEG, ARROWS_Y_NEG&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.plot( point(s)_x, point(s)_y, {new_series} )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Plot either an array, or a point. Optional second parameter specifies whether to start a new series or join onto previous.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.appearance( thing_to_change, shape, size, colour, {spacing}  )&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Changes the style of either points, lines, axis or grids. Each parameter is used as follows:&lt;br /&gt;
&lt;br /&gt;
'thing_to_change' - select what aspect to change, the options are {STYLE_POINT, STYLE_LINE, STYLE_XAXIS, STYLE_YAXIS, STYLE_XGRID, STYLE_YGRID}&lt;br /&gt;
&lt;br /&gt;
'shape' - selects the shape of the thing to change, where the options depend on what you are changing.&lt;br /&gt;
The options for points is: {POINT_NONE, POINT_DOT, POINT_SQUARE, POINT_CIRCLE}&lt;br /&gt;
The options for line/axis/grid are: {LINE_NONE, LINE_SOLID, LINE_DOT, LINE_DASH}&lt;br /&gt;
&lt;br /&gt;
'size' - number of pixels wide of the thing to change&lt;br /&gt;
&lt;br /&gt;
'colour' - use UGFX.Red, UGFX.Orange,...  or UGFX.html_color(0xRRGGBB) to ensure the right format&lt;br /&gt;
&lt;br /&gt;
'spacing' - only valid for grid&lt;br /&gt;
&lt;br /&gt;
See the [https://github.com/emfcamp/Mk3-Firmware/blob/master/apps/logger/main.py BARMS logger app] for an example&lt;br /&gt;
&lt;br /&gt;
==== ImageBox ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.ImageBox(x, y, w, h, filename, *, cache=0, parent=None, style=None)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Keyboard ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.Keyboard(x, y, w, h, parent=None)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Styles ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
s=ugfx.Style()  # create a style based on the current default style&lt;br /&gt;
&lt;br /&gt;
s.set_enabled([text_colour, edge_colour, fill_colour, progress_colour]) # sets the style for when something is enabled&lt;br /&gt;
s.set_pressed([text_colour, edge_colour, fill_colour, progress_colour]) # sets the style for when something is pressed&lt;br /&gt;
s.set_disabled([text_colour, edge_colour, fill_colour, progress_colour]) # sets the style for when something is disabled&lt;br /&gt;
&lt;br /&gt;
s.set_focus(colour)  # sets the colour used for focus&lt;br /&gt;
s.set_background(colour) # sets the background colour for the style&lt;br /&gt;
&lt;br /&gt;
ugfx.set_default_style(s) # use this style from now on&lt;br /&gt;
&lt;br /&gt;
b=ugfx.Button(0,0,40,30,&amp;quot;OK&amp;quot;, style=s) # use the style for this button&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tips and tricks ==&lt;br /&gt;
&lt;br /&gt;
=== Tearing ===&lt;br /&gt;
&lt;br /&gt;
When writing large areas of the screen, a 'tearing' [https://en.wikipedia.org/wiki/Screen_tearing] effect may be observed.&lt;br /&gt;
&lt;br /&gt;
The screen module is comprised of a large memory, with one memory location to store the RGB data for each pixel. The LCD driver continuously updates the LCD pixels, by reading the memory in a sequential, line-by-line manner, and updating the LCD with the data from the memory. This 'read line-pointer' moves from the top to the bottom of the screen (when viewed in portrait), at about 70Hz (the refresh rate of the screen)&lt;br /&gt;
&lt;br /&gt;
This large memory as part of the screen means it can be driven by a microcontroller which may have a considerably smaller memory. The microcontroller therefore only needs to update the memory when it whats the content to change. &lt;br /&gt;
&lt;br /&gt;
Consider the scenario where the microcontroller wants to set the screen from one colour to another. The microcontroller needs to update the entire memory (320x240x2 = 153kB) with the new colour. At the same time the 'read line-pointer' is reading the same memory to update the LCD. In this case, tearing occurs if the 'read line-pointer' reads the top half of the memory containing the new colour, but then catches up with microcontroller writing to the memory, then the 'read line-pointer' starts reading the old colour in the bottom half of the memory.&lt;br /&gt;
&lt;br /&gt;
To avoid tearing the 'read line-pointer' should not cross the region the microcontroller is updating. Since the microcontroller writes to the screen slightly slower than the LCD reads it, providing the microntroller starts writes to the top of the memory just after the LCD starts reading from the top, the read and write pointers will not overlap, and tearing will not occur. To sync the microcontroller with the LCD 'read line-pointer,' there is a vsync/tear output (connected to pin named 'TEAR') which is pulled high when the 'read line-pointer' reaches a given line (default is line 0). This can be turned on and off with '''ugfx.enable_tear()''' and '''ugfx.disable_tear()'''. To change the line at which the tear output is generated, use '''ugfx.set_tear_line(0..319)'''.&lt;br /&gt;
&lt;br /&gt;
Example code:&lt;br /&gt;
&lt;br /&gt;
    ugfx.enable_tear()&lt;br /&gt;
    tear = pyb.Pin(&amp;quot;TEAR&amp;quot;, pyb.Pin.IN)&lt;br /&gt;
    &lt;br /&gt;
    def vsync():&lt;br /&gt;
        while tear.value() == 0:&lt;br /&gt;
            pass&lt;br /&gt;
        while tear.value():&lt;br /&gt;
            pass&lt;br /&gt;
&lt;br /&gt;
=== Reducing power consumption ===&lt;br /&gt;
Use the following to dim the backlight, which uses about 80mA at full brightness&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ugfx.backlight(b)     # sets the backlight. Range is 0-100&lt;br /&gt;
b = ugfx.backlight()   # reads the current backlight&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Top-Level calls ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.power_mode(&amp;lt;mode&amp;gt;)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
''mode'' can be any of: ugfx.POWER_ON, ugfx.POWER_OFF, ugfx.POWER_DEEP_SLEEP, ugfx.POWER_SLEEP&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.orientation(deg)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Rotate the display by number of degrees, eg 180 for upside-down.&lt;br /&gt;
&lt;br /&gt;
Calling with no args returns the current value&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.display_image(x, y, '/path/to/image', orientation)&amp;lt;/code&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;.display_image(x, y, img_obj, orientation)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Display an image from a file of a supported type, or a previously opened image object, on screen at the x,y co-ordinates. Optionally change its orientation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.write_command(0x35,0)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Low-level command to write to a data register directly.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.poll()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Yield to ensure the screen is redrawn when waiting on user input&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.ball_demo()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ball Demo!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.get_pixel(x, y)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Returns the colour of the pixel at x,y&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;.Image(filename, cacheme)&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Creates and returns (or loads from cache) a ugfx image object from the image in the filename.&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/modtilda&amp;diff=293</id>
		<title>TiLDA MK3/modtilda</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/modtilda&amp;diff=293"/>
		<updated>2018-08-29T09:15:57Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: Created page with &amp;quot;todo: spec this out  &amp;lt;pre&amp;gt; &amp;gt;&amp;gt;&amp;gt; import tilda &amp;gt;&amp;gt;&amp;gt; dir(tilda) ['__class__', '__name__', 'Buttons', 'LED', 'Sensors', 'main', 'storage_disable_usb', 'storage_enable_usb'] &amp;gt;&amp;gt;&amp;gt; dir(...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;todo: spec this out&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; import tilda&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; dir(tilda)&lt;br /&gt;
['__class__', '__name__', 'Buttons', 'LED', 'Sensors', 'main', 'storage_disable_usb', 'storage_enable_usb']&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; dir(tilda.Buttons)&lt;br /&gt;
['__class__', '__name__', 'BTN_0', 'BTN_1', 'BTN_2', 'BTN_3', 'BTN_4', 'BTN_5', 'BTN_6', 'BTN_7', 'BTN_8', 'BTN_9', 'BTN_A', 'BTN_B', 'BTN_Call', 'BTN_End', 'BTN_Hash', 'BTN_Menu', 'BTN_Star', 'JOY_Center', 'JOY_Down', 'JOY_Left', 'JOY_Right', 'JOY_Up', 'disable_all_interrupt', 'disable_interrupt', 'disable_menu_reset', 'enable_interrupt', 'enable_menu_reset', 'get_all_states', 'has_interrupt', 'is_pressed', 'is_triggered']&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; dir(tilda.LED)&lt;br /&gt;
['__class__', '__name__', 'GREEN', 'RED', 'off', 'on', 'toggle']&lt;br /&gt;
&amp;gt;&amp;gt;&amp;gt; dir(tilda.Sensors)&lt;br /&gt;
['__class__', '__name__', 'BAT_ADAPTER_24', 'BAT_DONE_CHARGING', 'BAT_FAST_CHARGING', 'BAT_NOT_CHARGING', 'BAT_NO_INPUT', 'BAT_OTG', 'BAT_PRE_CHARGING', 'BAT_USB_HOST', '_raw_bq', 'get_charge_status', 'get_hdc_humidity', 'get_hdc_temperature', 'get_lux', 'get_tmp_temperature', 'get_vbus_connected', 'sample_rate']&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=292</id>
		<title>TiLDA MK4</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=292"/>
		<updated>2018-08-29T09:11:51Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_Mk4_Front_with_sponsors.png|right|500px|TiLDA Mk𝛿]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK4/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds. Release it when both the red and green LED are lit. If you got it correct both LEDs should flash a few times.&amp;lt;br&amp;gt;If this doesn't work you can [[TiLDA_MK4/Firmware_Update|update the badge firmware]]. If this doesn't work, please come and join us in #tilda on [https://freenode.net/ Freenode IRC]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Settings&amp;quot; app&lt;br /&gt;
# &amp;quot;Change Name&amp;quot; and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select 'Badge Store' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Install&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU to find your newly installed app. &lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK4/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete [todo: is this still correct?]&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK4/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
If everything else absolutely fails, you can try following these instructions (advanced): [[TiLDA_MK4/Firmware_Update]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK4/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK4/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK4/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
* [[TiLDA MK4/App Store Submissions|App Store Submissions]]&lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK4/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK4/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Apps&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Backend (powers the badge store)&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK4/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK4/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK4/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK4/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK4/sensors|Sensors]]&lt;br /&gt;
* [[TiLDA MK3/sim800|SIM800]] (GSM/Phone/Bluetooth)&lt;br /&gt;
* [[TiLDA MK3/modtilda|import tilda]] (our custom micropython module)&lt;br /&gt;
* [[TiLDA MK4/spi|SPI]] SPI&lt;br /&gt;
* please add&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk4-Apps/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
=== Hardware ===&lt;br /&gt;
&lt;br /&gt;
Full hardware files are on GitHub [https://github.com/emfcamp/Mk4-Hardware]&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Texas Instruments MSP432E4 SimpleLink Microcontroller (ARM Cortex-M4F @ 120MHz)&lt;br /&gt;
* Texas Instruments CC3120 SimpleLink Wi-Fi® Network Processor&lt;br /&gt;
* 256KB internal RAM / 8MB external SDRAM&lt;br /&gt;
* 1MB internal flash (firmware) / 1MB external flash (filesystem)&lt;br /&gt;
* SIM800 Quad-band GSM/GPRS module with Bluetooth support&lt;br /&gt;
* 240x320 RGB screen&lt;br /&gt;
* 2 WS2812B RGB LEDs (aka Neopixels) with a 3-pin header to connect your own (And this year they’re the right way up!)&lt;br /&gt;
* Texas Instruments HDC2080 Low Power Humidity and Temperature Sensor&lt;br /&gt;
* Texas Instruments TMP102 Digital Temperature Sensor&lt;br /&gt;
* Texas Instruments OPT3001 Digital Ambient Light Sensor&lt;br /&gt;
* Texas Instruments DRV5055 High Accuracy Bipolar Hall Effect Sensor&lt;br /&gt;
* Speaker and Microphone&lt;br /&gt;
* 2000mAh Battery&lt;br /&gt;
* Onboard Ethernet (requires breakout)&lt;br /&gt;
* A T9 number keypad and a joystick&lt;br /&gt;
* 2 Seed Studio Grove headers (one UART, one I²C)&lt;br /&gt;
* Conductive thread points and 0.1&amp;quot; header for power/UART/I2C/GPIO&lt;br /&gt;
* Defcon 26 Shitty Add-Ons connector&lt;br /&gt;
(todo: please add links from http://blog.emfcamp.org/post/177423823788/tilda-mk4-the-emf-2018-badge)&lt;br /&gt;
&lt;br /&gt;
Hardware files are available on GitHub [https://github.com/emfcamp/Mk4-Hardware].&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=File:TiLDA_Mk4_Front_with_sponsors.png&amp;diff=291</id>
		<title>File:TiLDA Mk4 Front with sponsors.png</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=File:TiLDA_Mk4_Front_with_sponsors.png&amp;diff=291"/>
		<updated>2018-08-29T09:11:14Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=290</id>
		<title>TiLDA MK4</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK4&amp;diff=290"/>
		<updated>2018-08-29T09:06:23Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: copy from mk3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK4_front.jpg|right|500px|TiLDA Mk𝛿]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK4/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds. Release it when both the red and green LED are lit. If you got it correct both LEDs should flash a few times.&amp;lt;br&amp;gt;If this doesn't work you can [[TiLDA_MK4/Firmware_Update|update the badge firmware]]. If this doesn't work, please come and join us in #tilda on [https://freenode.net/ Freenode IRC]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Settings&amp;quot; app&lt;br /&gt;
# &amp;quot;Change Name&amp;quot; and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select 'Badge Store' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Install&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU to find your newly installed app. &lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK4/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete [todo: is this still correct?]&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK4/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
If everything else absolutely fails, you can try following these instructions (advanced): [[TiLDA_MK4/Firmware_Update]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK4/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK4/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK4/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
* [[TiLDA MK4/App Store Submissions|App Store Submissions]]&lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK4/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK4/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Apps&lt;br /&gt;
* https://github.com/emfcamp/Mk4-Backend (powers the badge store)&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK4/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK4/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK4/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK4/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK4/sensors|Sensors]]&lt;br /&gt;
* [[TiLDA MK3/sim800|SIM800]] (GSM/Phone/Bluetooth)&lt;br /&gt;
* [[TiLDA MK3/modtilda|import tilda]] (our custom micropython module)&lt;br /&gt;
* [[TiLDA MK4/spi|SPI]] SPI&lt;br /&gt;
* please add&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk4-Apps/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
=== Hardware ===&lt;br /&gt;
&lt;br /&gt;
Full hardware files are on GitHub [https://github.com/emfcamp/Mk4-Hardware]&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Texas Instruments MSP432E4 SimpleLink Microcontroller (ARM Cortex-M4F @ 120MHz)&lt;br /&gt;
* Texas Instruments CC3120 SimpleLink Wi-Fi® Network Processor&lt;br /&gt;
* 256KB internal RAM / 8MB external SDRAM&lt;br /&gt;
* 1MB internal flash (firmware) / 1MB external flash (filesystem)&lt;br /&gt;
* SIM800 Quad-band GSM/GPRS module with Bluetooth support&lt;br /&gt;
* 240x320 RGB screen&lt;br /&gt;
* 2 WS2812B RGB LEDs (aka Neopixels) with a 3-pin header to connect your own (And this year they’re the right way up!)&lt;br /&gt;
* Texas Instruments HDC2080 Low Power Humidity and Temperature Sensor&lt;br /&gt;
* Texas Instruments TMP102 Digital Temperature Sensor&lt;br /&gt;
* Texas Instruments OPT3001 Digital Ambient Light Sensor&lt;br /&gt;
* Texas Instruments DRV5055 High Accuracy Bipolar Hall Effect Sensor&lt;br /&gt;
* Speaker and Microphone&lt;br /&gt;
* 2000mAh Battery&lt;br /&gt;
* Onboard Ethernet (requires breakout)&lt;br /&gt;
* A T9 number keypad and a joystick&lt;br /&gt;
* 2 Seed Studio Grove headers (one UART, one I²C)&lt;br /&gt;
* Conductive thread points and 0.1&amp;quot; header for power/UART/I2C/GPIO&lt;br /&gt;
* Defcon 26 Shitty Add-Ons connector&lt;br /&gt;
(todo: please add links from http://blog.emfcamp.org/post/177423823788/tilda-mk4-the-emf-2018-badge)&lt;br /&gt;
&lt;br /&gt;
Hardware files are available on GitHub [https://github.com/emfcamp/Mk4-Hardware].&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=184</id>
		<title>TiLDA MK3</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=184"/>
		<updated>2016-08-07T11:19:43Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Using your badge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK3_front.jpg|right|500px|TiLDA Mkπ]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK3/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds while the green light on the front is blinking. Release it &amp;lt;i&amp;gt;while&amp;lt;/i&amp;gt; the green light is on.&amp;lt;br&amp;gt;If this doesn't work you can [https://update.badge.emfcamp.org/ update the badge firmware]. If this doesn't work, please come and see us at the badge tent&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #DDFFFF; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;If you're having problems downloading some apps from the App Library &amp;lt;b&amp;gt;please update your badge via the App Library update option&amp;lt;/b&amp;gt;. After a restart it should work much smoother.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Change Name' app and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'App Library' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Browse App Store&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU and select &amp;quot;View all&amp;quot; to find your newly installed app. If you want to pin it to the quick launcher screen select your app and press MENU. If you just want to start it press A instead.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK3/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;A word of warning&amp;lt;/strong&amp;gt;: During EMF the badge will use &amp;quot;emf-insecure&amp;quot;. This is, as the name implies, not the most secure way of transmitting data. On top of that there are some problems with HTTPS and SSL, so we're not using it for with the default apps (we're working on it!). Please &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;don't send anything private or important to or from the badge via wifi&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK3/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK3/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK3/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK3/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
* [[TiLDA MK3/App Store Submissions|App Store Submissions]]&lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK3/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK3/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Firmware&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Server&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK3/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/emfcamp/Mk3-Hardware/blob/master/case-final.dxf Laser cut case files]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK3/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK3/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK3/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK3/adc|ADC]] (analogue reading)&lt;br /&gt;
* [[TiLDA MK3/timer|Timer]]&lt;br /&gt;
* Microcontroller peripherals [https://micropython.org/doc/module/pyb/] (Timers, PWM, serial etc)&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
TBD, for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk3-Firmware/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
* [[TiLDA MK3/lib/buttons|buttons]]&lt;br /&gt;
* database&lt;br /&gt;
* dialogs&lt;br /&gt;
* filesystem&lt;br /&gt;
* http_client&lt;br /&gt;
* imu&lt;br /&gt;
* wifi&lt;br /&gt;
* NTP Example: https://gist.github.com/drrk/4a17c4394f93d0f9123560af056f6f30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Colour LCD screen 320x240&lt;br /&gt;
* Joystick and A/B/Menu Buttons&lt;br /&gt;
* Wifi (cc3100)&lt;br /&gt;
* Accelerometer&lt;br /&gt;
* Compass&lt;br /&gt;
* Buzzer&lt;br /&gt;
* Battery&lt;br /&gt;
* &amp;lt;s&amp;gt;WS2812B aka &amp;quot;Neo Pixel&amp;quot;&amp;lt;/s&amp;gt; Sadly defunct - come to the badge tent to have it fixed :(&lt;br /&gt;
* MicroSD slot&lt;br /&gt;
&lt;br /&gt;
[[File:pinout-1.png | 500px]] [[File:pinout2-1.png | 500px]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/App_Store_Submissions&amp;diff=183</id>
		<title>TiLDA MK3/App Store Submissions</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/App_Store_Submissions&amp;diff=183"/>
		<updated>2016-08-07T09:49:02Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* How to submit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to submit ==&lt;br /&gt;
Zip your folder up, sign up to http://api.badge.emfcamp.org/, create a new app and publish it&lt;br /&gt;
&lt;br /&gt;
== Common Problems ==&lt;br /&gt;
Please check these things before publishing your app:&lt;br /&gt;
* Your app will end up in &amp;quot;app/username~appname&amp;quot;, so please make sure all you paths are using that. Example: &amp;lt;code&amp;gt;open(&amp;quot;app/myname~myapp/some.json&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
* Please make sure the meta data at the top of the file is ok&lt;br /&gt;
* Please make sure to use &amp;lt;code&amp;gt;ugfx.init()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;buttons.init()&amp;lt;/code&amp;gt;, it makes it easier for me to review&lt;br /&gt;
&lt;br /&gt;
Besides those, there are currently problems with apps that have too many files (lots of images for example) or use too much memory (big arrays). If it's possible in any way, please try to keep both down. We're working on reducing memory usage.&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/App_Store_Submissions&amp;diff=182</id>
		<title>TiLDA MK3/App Store Submissions</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/App_Store_Submissions&amp;diff=182"/>
		<updated>2016-08-07T09:48:54Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: Created page with &amp;quot;== How to submit ==  Zip your folder up, sign up to http://api.badge.emfcamp.org/, create a new app and publish it  == Common Problems == Please check these things before publ...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== How to submit ==&lt;br /&gt;
 Zip your folder up, sign up to http://api.badge.emfcamp.org/, create a new app and publish it&lt;br /&gt;
&lt;br /&gt;
== Common Problems ==&lt;br /&gt;
Please check these things before publishing your app:&lt;br /&gt;
* Your app will end up in &amp;quot;app/username~appname&amp;quot;, so please make sure all you paths are using that. Example: &amp;lt;code&amp;gt;open(&amp;quot;app/myname~myapp/some.json&amp;quot;)&amp;lt;/code&amp;gt;&lt;br /&gt;
* Please make sure the meta data at the top of the file is ok&lt;br /&gt;
* Please make sure to use &amp;lt;code&amp;gt;ugfx.init()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;buttons.init()&amp;lt;/code&amp;gt;, it makes it easier for me to review&lt;br /&gt;
&lt;br /&gt;
Besides those, there are currently problems with apps that have too many files (lots of images for example) or use too much memory (big arrays). If it's possible in any way, please try to keep both down. We're working on reducing memory usage.&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=181</id>
		<title>TiLDA MK3</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=181"/>
		<updated>2016-08-07T09:44:14Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Hacking your badge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK3_front.jpg|right|500px|TiLDA Mkπ]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK3/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds while the green light on the front is blinking. Release it &amp;lt;i&amp;gt;while&amp;lt;/i&amp;gt; the green light is on.&amp;lt;br&amp;gt;If this doesn't work you can [https://update.badge.emfcamp.org/ update the badge firmware] and try a factory reset afterwards. If this doesn't work, please come and see us at the badge tent&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;The TiLDA &amp;lt;b&amp;gt;app library doesn't want to download some apps at the moment due to memory issues, but you can download them manually&amp;lt;/b&amp;gt; from http://api.badge.emfcamp.org/apps - Unzip them, put them in a folder named &amp;quot;lowercase-username~lowercase-appname&amp;quot; and copy that folder into the &amp;quot;apps&amp;quot; folder on the badge. Make sure to &amp;quot;safely eject&amp;quot; the usb drive before resetting your badge. We're trying to resolve the issue as soon as possible.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;If you want to &amp;lt;b&amp;gt;help us debug&amp;lt;/b&amp;gt; the issue, please join #tilda on freenode (IRC). Github issue is here: https://github.com/emfcamp/Mk3-Firmware/issues/71&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Change Name' app and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'App Library' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Browse App Store&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU and select &amp;quot;View all&amp;quot; to find your newly installed app. If you want to pin it to the quick launcher screen select your app and press MENU. If you just want to start it press A instead.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK3/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;A word of warning&amp;lt;/strong&amp;gt;: During EMF the badge will use &amp;quot;emf-insecure&amp;quot;. This is, as the name implies, not the most secure way of transmitting data. On top of that there are some problems with HTTPS and SSL, so we're not using it for with the default apps (we're working on it!). Please &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;don't send anything private or important to or from the badge via wifi&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK3/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK3/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK3/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK3/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
* [[TiLDA MK3/App Store Submissions|App Store Submissions]]&lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK3/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK3/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Firmware&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Server&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK3/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/emfcamp/Mk3-Hardware/blob/master/case-final.dxf Laser cut case files]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK3/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK3/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK3/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK3/adc|ADC]] (analogue reading)&lt;br /&gt;
* [[TiLDA MK3/timer|Timer]]&lt;br /&gt;
* Microcontroller peripherals [https://micropython.org/doc/module/pyb/] (Timers, PWM, serial etc)&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
TBD, for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk3-Firmware/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
* [[TiLDA MK3/lib/buttons|buttons]]&lt;br /&gt;
* database&lt;br /&gt;
* dialogs&lt;br /&gt;
* filesystem&lt;br /&gt;
* http_client&lt;br /&gt;
* imu&lt;br /&gt;
* wifi&lt;br /&gt;
* NTP Example: https://gist.github.com/drrk/4a17c4394f93d0f9123560af056f6f30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Colour LCD screen 320x240&lt;br /&gt;
* Joystick and A/B/Menu Buttons&lt;br /&gt;
* Wifi (cc3100)&lt;br /&gt;
* Accelerometer&lt;br /&gt;
* Compass&lt;br /&gt;
* Buzzer&lt;br /&gt;
* Battery&lt;br /&gt;
* &amp;lt;s&amp;gt;WS2812B aka &amp;quot;Neo Pixel&amp;quot;&amp;lt;/s&amp;gt; Sadly defunct - come to the badge tent to have it fixed :(&lt;br /&gt;
* MicroSD slot&lt;br /&gt;
&lt;br /&gt;
[[File:pinout-1.png | 500px]] [[File:pinout2-1.png | 500px]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=180</id>
		<title>TiLDA MK3</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=180"/>
		<updated>2016-08-06T19:29:08Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Using your badge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK3_front.jpg|right|500px|TiLDA Mkπ]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK3/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds while the green light on the front is blinking. Release it &amp;lt;i&amp;gt;while&amp;lt;/i&amp;gt; the green light is on.&amp;lt;br&amp;gt;If this doesn't work you can [https://update.badge.emfcamp.org/ update the badge firmware] and try a factory reset afterwards. If this doesn't work, please come and see us at the badge tent&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;The TiLDA &amp;lt;b&amp;gt;app library doesn't want to download some apps at the moment due to memory issues, but you can download them manually&amp;lt;/b&amp;gt; from http://api.badge.emfcamp.org/apps - Unzip them, put them in a folder named &amp;quot;lowercase-username~lowercase-appname&amp;quot; and copy that folder into the &amp;quot;apps&amp;quot; folder on the badge. Make sure to &amp;quot;safely eject&amp;quot; the usb drive before resetting your badge. We're trying to resolve the issue as soon as possible.&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;If you want to &amp;lt;b&amp;gt;help us debug&amp;lt;/b&amp;gt; the issue, please join #tilda on freenode (IRC). Github issue is here: https://github.com/emfcamp/Mk3-Firmware/issues/71&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Change Name' app and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'App Library' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Browse App Store&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU and select &amp;quot;View all&amp;quot; to find your newly installed app. If you want to pin it to the quick launcher screen select your app and press MENU. If you just want to start it press A instead.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK3/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;A word of warning&amp;lt;/strong&amp;gt;: During EMF the badge will use &amp;quot;emf-insecure&amp;quot;. This is, as the name implies, not the most secure way of transmitting data. On top of that there are some problems with HTTPS and SSL, so we're not using it for with the default apps (we're working on it!). Please &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;don't send anything private or important to or from the badge via wifi&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK3/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK3/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK3/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK3/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK3/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK3/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Firmware&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Server&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK3/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/emfcamp/Mk3-Hardware/blob/master/case-final.dxf Laser cut case files]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK3/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK3/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK3/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK3/adc|ADC]] (analogue reading)&lt;br /&gt;
* [[TiLDA MK3/timer|Timer]]&lt;br /&gt;
* Microcontroller peripherals [https://micropython.org/doc/module/pyb/] (Timers, PWM, serial etc)&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
TBD, for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk3-Firmware/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
* [[TiLDA MK3/lib/buttons|buttons]]&lt;br /&gt;
* database&lt;br /&gt;
* dialogs&lt;br /&gt;
* filesystem&lt;br /&gt;
* http_client&lt;br /&gt;
* imu&lt;br /&gt;
* wifi&lt;br /&gt;
* NTP Example: https://gist.github.com/drrk/4a17c4394f93d0f9123560af056f6f30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Colour LCD screen 320x240&lt;br /&gt;
* Joystick and A/B/Menu Buttons&lt;br /&gt;
* Wifi (cc3100)&lt;br /&gt;
* Accelerometer&lt;br /&gt;
* Compass&lt;br /&gt;
* Buzzer&lt;br /&gt;
* Battery&lt;br /&gt;
* &amp;lt;s&amp;gt;WS2812B aka &amp;quot;Neo Pixel&amp;quot;&amp;lt;/s&amp;gt; Sadly defunct - come to the badge tent to have it fixed :(&lt;br /&gt;
* MicroSD slot&lt;br /&gt;
&lt;br /&gt;
[[File:pinout-1.png | 500px]] [[File:pinout2-1.png | 500px]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=Main_Page&amp;diff=178</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=Main_Page&amp;diff=178"/>
		<updated>2016-08-06T15:35:10Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* EMF2016 - TiLDA Mkπ */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The aim of the EMF badge is to give people interesting hardware they've probably not experimented with before while being simple enough that anyone can play with it.&lt;br /&gt;
&lt;br /&gt;
==EMF2016 - TiLDA Mkπ==&lt;br /&gt;
[[File:TiLDA_MK3_front.jpg|right|thumb|TiLDA Mkπ|link=TiLDA_MK3]]&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;You want to go here&amp;lt;/span&amp;gt; ----&amp;gt; [[TiLDA_MK3]] main page.'''&lt;br /&gt;
&lt;br /&gt;
See this years badge announcement on our blog&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
http://blog.emfcamp.org/post/144514906298/tilda-mkπ-the-hackable-conference-badge-that&lt;br /&gt;
&lt;br /&gt;
Update, we have sponsors, the badge is saved!&lt;br /&gt;
&lt;br /&gt;
http://blog.emfcamp.org/post/145667126793/the-emf-tilda-badge-is-saved&lt;br /&gt;
&lt;br /&gt;
==EMF2014 - TiLDA MKe==&lt;br /&gt;
[[File:Tumblr_inline_n9znh3W5tC1rpuop0.jpg|right|thumb|TiLDA MKe]]&lt;br /&gt;
&lt;br /&gt;
The [[TiLDA MKe|TiLDA MKe project]] is code named &amp;quot;ElectroMagnetic Boogaloo&amp;quot;&lt;br /&gt;
&lt;br /&gt;
The MKe is an entirely new design, based on the Arduino Due.  It brings an LCD display, Accelerometer and Gyro, along with a long-range wireless transceiver.  The original specification was to give people live schedule updates and camp notifications, but the hardware was capable of much more.&lt;br /&gt;
&lt;br /&gt;
Please Note: There are a couple of minor hardware and some firmware issues with the MKe that might be effecting your badge. If you've let the magic smoke out of your charge controller or have tried to re-flash and ended up with nothing but a couple of dimly glowing lights then DO NOT DESPAIR -It's recoverable and fixes, documentation and lots of firmware are still being produced :)&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==EMW2013 - SiNE==&lt;br /&gt;
[[File:800px-SiNE_Front_Angle.JPG|thumb|300px]]&lt;br /&gt;
[[SiNE|SiNE: Investigating the Neighbourhood of EMW]]&lt;br /&gt;
&lt;br /&gt;
Each attendee of Electromagnetic Wave received a SiNE badge, allowing them to take part in a treasure hunt based around the boat. By solving the clues, attendees were directed to an object or location either on or near the Stubnitz. The clue letter was also the first letter of the answer - large matching letters fitted with IR code transmitters were stored at each location. Holding your badge in front of the letter lit the corresponding light on a badge, allowing the user to collect them all!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==EMF2012 - TiLDA MK1==&lt;br /&gt;
[[File:Emf2012_badge_pcb.png|thumb|300px]]&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://wiki-archive.emfcamp.org/2012/articles/b/a/d/Badge.html TiLDA]&amp;lt;br/&amp;gt;&lt;br /&gt;
The first EMF camp badge, base around the Arduino Leonard, with on board IR, NRF24 Radio and RGB LED's.&amp;lt;br/&amp;gt;&lt;br /&gt;
[http://blog.emfcamp.org/post/28558155390/revealing-tilda-our-camp-badge Revealing TiLDA, our camp badge!]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;clear: both&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==[[Team:Badge|Badge Team]]==&lt;br /&gt;
&lt;br /&gt;
The badge team is being headed by &lt;br /&gt;
*[[User:Dpslwk|'RepRap' Matt]] from Nottinghack&lt;br /&gt;
*[[User:thinkl33t|Bob]] from Hackspace Manchester&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=177</id>
		<title>TiLDA MK3</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=177"/>
		<updated>2016-08-06T14:53:05Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Using your badge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK3_front.jpg|right|500px|TiLDA Mkπ]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK3/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds while the green light on the front is blinking. Release it &amp;lt;i&amp;gt;while&amp;lt;/i&amp;gt; the green light is on.&amp;lt;br&amp;gt;If this doesn't work you can [https://update.badge.emfcamp.org/ update the badge firmware] and try a factory reset afterwards. If this doesn't work, please come and see us at the badge tent&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;There are currently &amp;lt;strong&amp;gt;some issues with the app library&amp;lt;/strong&amp;gt; on the badge being unable to download new apps. You can instead go to http://api.badge.emfcamp.org/apps and download a zip for the app you want. To get it onto your badge you need to create a new folder on your badge in the &amp;quot;apps/&amp;quot; folder. Make sure to safely eject the usb storage before resetting!&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;If you want to &amp;lt;b&amp;gt;help us debug&amp;lt;/b&amp;gt; the issue, please join #tilda on freenode (IRC). Github issue is here: https://github.com/emfcamp/Mk3-Firmware/issues/71&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Change Name' app and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'App Library' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Browse App Store&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU and select &amp;quot;View all&amp;quot; to find your newly installed app. If you want to pin it to the quick launcher screen select your app and press MENU. If you just want to start it press A instead.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK3/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;A word of warning&amp;lt;/strong&amp;gt;: During EMF the badge will use &amp;quot;emf-insecure&amp;quot;. This is, as the name implies, not the most secure way of transmitting data. On top of that there are some problems with HTTPS and SSL, so we're not using it for with the default apps (we're working on it!). Please &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;don't send anything private or important to or from the badge via wifi&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK3/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK3/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK3/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK3/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK3/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK3/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Firmware&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Server&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK3/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/emfcamp/Mk3-Hardware/blob/master/case-final.dxf Laser cut case files]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK3/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK3/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK3/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK3/adc|ADC]] (analogue reading)&lt;br /&gt;
* [[TiLDA MK3/timer|Timer]]&lt;br /&gt;
* Microcontroller peripherals [https://micropython.org/doc/module/pyb/] (Timers, PWM, serial etc)&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
TBD, for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk3-Firmware/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
* [[TiLDA MK3/lib/buttons|buttons]]&lt;br /&gt;
* database&lt;br /&gt;
* dialogs&lt;br /&gt;
* filesystem&lt;br /&gt;
* http_client&lt;br /&gt;
* imu&lt;br /&gt;
* wifi&lt;br /&gt;
* NTP Example: https://gist.github.com/drrk/4a17c4394f93d0f9123560af056f6f30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Colour LCD screen 320x240&lt;br /&gt;
* Joystick and A/B/Menu Buttons&lt;br /&gt;
* Wifi (cc3100)&lt;br /&gt;
* Accelerometer&lt;br /&gt;
* Compass&lt;br /&gt;
* Buzzer&lt;br /&gt;
* Battery&lt;br /&gt;
* &amp;lt;s&amp;gt;WS2812B aka &amp;quot;Neo Pixel&amp;quot;&amp;lt;/s&amp;gt; Sadly defunct - come to the badge tent to have it fixed :(&lt;br /&gt;
* MicroSD slot&lt;br /&gt;
&lt;br /&gt;
[[File:pinout-1.png | 500px]] [[File:pinout2-1.png | 500px]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/memory_problems&amp;diff=176</id>
		<title>TiLDA MK3/memory problems</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/memory_problems&amp;diff=176"/>
		<updated>2016-08-06T14:50:14Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: Created page with &amp;quot;=Call for Help: Memory Issues=  Please help the badge team: https://github.com/emfcamp/Mk3-Firmware/issues/71&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Call for Help: Memory Issues=&lt;br /&gt;
&lt;br /&gt;
Please help the badge team: https://github.com/emfcamp/Mk3-Firmware/issues/71&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=175</id>
		<title>TiLDA MK3</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=175"/>
		<updated>2016-08-06T14:42:57Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Using your badge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK3_front.jpg|right|500px|TiLDA Mkπ]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK3/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds while the green light on the front is blinking. Release it &amp;lt;i&amp;gt;while&amp;lt;/i&amp;gt; the green light is on.&amp;lt;br&amp;gt;If this doesn't work you can [https://update.badge.emfcamp.org/ update the badge firmware] and try a factory reset afterwards. If this doesn't work, please come and see us at the badge tent&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;There are currently &amp;lt;strong&amp;gt;some issues with the app library&amp;lt;/strong&amp;gt; on the badge being unable to download new apps. You can instead go to http://api.badge.emfcamp.org/apps and download a zip for the app you want. To get it onto your badge you need to create a new folder on your badge in the &amp;quot;apps/&amp;quot; folder. Make sure to safely eject the usb storage before resetting!&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;If you want to &amp;lt;b&amp;gt;help us debug&amp;lt;/b&amp;gt; the issue, please join #tilda on freenode (IRC) or look [[TiLDA_MK3/memory_problems|here]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Change Name' app and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'App Library' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Browse App Store&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU and select &amp;quot;View all&amp;quot; to find your newly installed app. If you want to pin it to the quick launcher screen select your app and press MENU. If you just want to start it press A instead.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK3/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;A word of warning&amp;lt;/strong&amp;gt;: During EMF the badge will use &amp;quot;emf-insecure&amp;quot;. This is, as the name implies, not the most secure way of transmitting data. On top of that there are some problems with HTTPS and SSL, so we're not using it for with the default apps (we're working on it!). Please &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;don't send anything private or important to or from the badge via wifi&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK3/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK3/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK3/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK3/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK3/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK3/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Firmware&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Server&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK3/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/emfcamp/Mk3-Hardware/blob/master/case-final.dxf Laser cut case files]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK3/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK3/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK3/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK3/adc|ADC]] (analogue reading)&lt;br /&gt;
* [[TiLDA MK3/timer|Timer]]&lt;br /&gt;
* Microcontroller peripherals [https://micropython.org/doc/module/pyb/] (Timers, PWM, serial etc)&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
TBD, for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk3-Firmware/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
* [[TiLDA MK3/lib/buttons|buttons]]&lt;br /&gt;
* database&lt;br /&gt;
* dialogs&lt;br /&gt;
* filesystem&lt;br /&gt;
* http_client&lt;br /&gt;
* imu&lt;br /&gt;
* wifi&lt;br /&gt;
* NTP Example: https://gist.github.com/drrk/4a17c4394f93d0f9123560af056f6f30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Colour LCD screen 320x240&lt;br /&gt;
* Joystick and A/B/Menu Buttons&lt;br /&gt;
* Wifi (cc3100)&lt;br /&gt;
* Accelerometer&lt;br /&gt;
* Compass&lt;br /&gt;
* Buzzer&lt;br /&gt;
* Battery&lt;br /&gt;
* &amp;lt;s&amp;gt;WS2812B aka &amp;quot;Neo Pixel&amp;quot;&amp;lt;/s&amp;gt; Sadly defunct - come to the badge tent to have it fixed :(&lt;br /&gt;
* MicroSD slot&lt;br /&gt;
&lt;br /&gt;
[[File:pinout-1.png | 500px]] [[File:pinout2-1.png | 500px]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=174</id>
		<title>TiLDA MK3</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=174"/>
		<updated>2016-08-06T13:33:24Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Using your badge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK3_front.jpg|right|500px|TiLDA Mkπ]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK3/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds while the green light on the front is blinking. Release it &amp;lt;i&amp;gt;while&amp;lt;/i&amp;gt; the green light is on.&amp;lt;br&amp;gt;If this doesn't work you can [https://update.badge.emfcamp.org/ update the badge firmware] and try a factory reset afterwards. If this doesn't work, please come and see us at the badge tent&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;There are currently &amp;lt;strong&amp;gt;some issues with the app library&amp;lt;/strong&amp;gt; on the badge being unable to download new apps. You can instead go to http://api.badge.emfcamp.org/apps and download a zip for the app you want. To get it onto your badge you need to create a new folder on your badge in the &amp;quot;apps/&amp;quot; folder. Make sure to safely eject the usb storage before resetting!&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Change Name' app and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'App Library' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Browse App Store&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU and select &amp;quot;View all&amp;quot; to find your newly installed app. If you want to pin it to the quick launcher screen select your app and press MENU. If you just want to start it press A instead.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK3/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;A word of warning&amp;lt;/strong&amp;gt;: During EMF the badge will use &amp;quot;emf-insecure&amp;quot;. This is, as the name implies, not the most secure way of transmitting data. On top of that there are some problems with HTTPS and SSL, so we're not using it for with the default apps (we're working on it!). Please &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;don't send anything private or important to or from the badge via wifi&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK3/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK3/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK3/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK3/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK3/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK3/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Firmware&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Server&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK3/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/emfcamp/Mk3-Hardware/blob/master/case-final.dxf Laser cut case files]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK3/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK3/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK3/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK3/adc|ADC]] (analogue reading)&lt;br /&gt;
* [[TiLDA MK3/timer|Timer]]&lt;br /&gt;
* Microcontroller peripherals [https://micropython.org/doc/module/pyb/] (Timers, PWM, serial etc)&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
TBD, for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk3-Firmware/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
* [[TiLDA MK3/lib/buttons|buttons]]&lt;br /&gt;
* database&lt;br /&gt;
* dialogs&lt;br /&gt;
* filesystem&lt;br /&gt;
* http_client&lt;br /&gt;
* imu&lt;br /&gt;
* wifi&lt;br /&gt;
* NTP Example: https://gist.github.com/drrk/4a17c4394f93d0f9123560af056f6f30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Colour LCD screen 320x240&lt;br /&gt;
* Joystick and A/B/Menu Buttons&lt;br /&gt;
* Wifi (cc3100)&lt;br /&gt;
* Accelerometer&lt;br /&gt;
* Compass&lt;br /&gt;
* Buzzer&lt;br /&gt;
* Battery&lt;br /&gt;
* &amp;lt;s&amp;gt;WS2812B aka &amp;quot;Neo Pixel&amp;quot;&amp;lt;/s&amp;gt; Sadly defunct - come to the badge tent to have it fixed :(&lt;br /&gt;
* MicroSD slot&lt;br /&gt;
&lt;br /&gt;
[[File:pinout-1.png | 500px]] [[File:pinout2-1.png | 500px]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=166</id>
		<title>TiLDA MK3</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=166"/>
		<updated>2016-08-06T11:17:50Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Using your badge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK3_front.jpg|right|500px|TiLDA Mkπ]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK3/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds while the green light on the front is blinking. Release it &amp;lt;i&amp;gt;while&amp;lt;/i&amp;gt; the green light is on.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;There are currently &amp;lt;strong&amp;gt;some issues with the app library&amp;lt;/strong&amp;gt; on the badge being unable to download new apps. You can instead go to http://api.badge.emfcamp.org/apps and download a zip for the app you want. To get it onto your badge you need to create a new folder on your badge in the &amp;quot;apps/&amp;quot; folder. Make sure to safely eject the usb storage before resetting!&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Change Name' app and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'App Library' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Browse App Store&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU and select &amp;quot;View all&amp;quot; to find your newly installed app. If you want to pin it to the quick launcher screen select your app and press MENU. If you just want to start it press A instead.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK3/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;A word of warning&amp;lt;/strong&amp;gt;: During EMF the badge will use &amp;quot;emf-insecure&amp;quot;. This is, as the name implies, not the most secure way of transmitting data. On top of that there are some problems with HTTPS and SSL, so we're not using it for with the default apps (we're working on it!). Please &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;don't send anything private or important to or from the badge via wifi&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK3/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK3/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK3/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK3/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK3/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK3/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Firmware&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Server&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK3/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/emfcamp/Mk3-Hardware/blob/master/case-final.dxf Laser cut case files]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK3/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK3/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK3/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK3/adc|ADC]] (analogue reading)&lt;br /&gt;
* [[TiLDA MK3/timer|Timer]]&lt;br /&gt;
* Microcontroller peripherals [https://micropython.org/doc/module/pyb/] (Timers, PWM, serial etc)&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
TBD, for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk3-Firmware/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
* [[TiLDA MK3/lib/buttons|buttons]]&lt;br /&gt;
* database&lt;br /&gt;
* dialogs&lt;br /&gt;
* filesystem&lt;br /&gt;
* http_client&lt;br /&gt;
* imu&lt;br /&gt;
* wifi&lt;br /&gt;
* NTP Example: https://gist.github.com/drrk/4a17c4394f93d0f9123560af056f6f30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Colour LCD screen 320x240&lt;br /&gt;
* Joystick and A/B/Menu Buttons&lt;br /&gt;
* Wifi (cc3100)&lt;br /&gt;
* Accelerometer&lt;br /&gt;
* Compass&lt;br /&gt;
* Buzzer&lt;br /&gt;
* Battery&lt;br /&gt;
* &amp;lt;s&amp;gt;WS2812B aka &amp;quot;Neo Pixel&amp;quot;&amp;lt;/s&amp;gt; Sadly defunct - come to the badge tent to have it fixed :(&lt;br /&gt;
* MicroSD slot&lt;br /&gt;
&lt;br /&gt;
[[File:pinout-1.png | 500px]] [[File:pinout2-1.png | 500px]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=165</id>
		<title>TiLDA MK3</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=165"/>
		<updated>2016-08-06T11:14:04Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Using your badge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK3_front.jpg|right|500px|TiLDA Mkπ]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK3/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds while the green light on the front is blinking. Release it &amp;lt;i&amp;gt;while&amp;lt;/i&amp;gt; the green light is on.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;There are currently &amp;lt;strong&amp;gt;some issues with the app library&amp;lt;/strong&amp;gt; on the badge being unable to download new apps. You can instead go to http://api.badge.emfcamp.org/apps and download a zip for the app you want. To get it onto your badge you need to create a new folder on your badge in the &amp;quot;apps/&amp;quot; folder. Make sure to safely eject the usb storage before resetting!&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Change Name' app and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'App Library' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Browse App Store&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU and select &amp;quot;View all&amp;quot; to find your newly installed app. If you want to pin it to the quick launcher screen select your app and press MENU. If you just want to start it press A instead.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK3/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;A word of warning&amp;lt;/strong&amp;gt;: During EMF the badge will use &amp;quot;emf-insecure&amp;quot;. This is, as the name implies, not the most secure way of transmitting data. On top of that there are some problems with HTTPS and SSL, so we're not using it for with the default apps (we're working on it!). Please &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;don't send anything private or important to or from the badge via wifi&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK3/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''[[TiLDA_MK3/Introduction_to_badge_hacking|Badge Hacking Workshop Documentation]]'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK3/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK3/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK3/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK3/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Firmware&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Server&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK3/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/emfcamp/Mk3-Hardware/blob/master/case-final.dxf Laser cut case files]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK3/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK3/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK3/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK3/adc|ADC]] (analogue reading)&lt;br /&gt;
* [[TiLDA MK3/timer|Timer]]&lt;br /&gt;
* Microcontroller peripherals [https://micropython.org/doc/module/pyb/] (Timers, PWM, serial etc)&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
TBD, for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk3-Firmware/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
* [[TiLDA MK3/lib/buttons|buttons]]&lt;br /&gt;
* database&lt;br /&gt;
* dialogs&lt;br /&gt;
* filesystem&lt;br /&gt;
* http_client&lt;br /&gt;
* imu&lt;br /&gt;
* wifi&lt;br /&gt;
* NTP Example: https://gist.github.com/drrk/4a17c4394f93d0f9123560af056f6f30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Colour LCD screen 320x240&lt;br /&gt;
* Joystick and A/B/Menu Buttons&lt;br /&gt;
* Wifi (cc3100)&lt;br /&gt;
* Accelerometer&lt;br /&gt;
* Compass&lt;br /&gt;
* Buzzer&lt;br /&gt;
* Battery&lt;br /&gt;
* &amp;lt;s&amp;gt;WS2812B aka &amp;quot;Neo Pixel&amp;quot;&amp;lt;/s&amp;gt; Sadly defunct - come to the badge tent to have it fixed :(&lt;br /&gt;
* MicroSD slot&lt;br /&gt;
&lt;br /&gt;
[[File:pinout-1.png | 500px]] [[File:pinout2-1.png | 500px]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Run_Code&amp;diff=161</id>
		<title>TiLDA MK3/Run Code</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Run_Code&amp;diff=161"/>
		<updated>2016-08-06T09:26:43Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This video is meant for the micropython board, but most of it works similar on the TiLDA: https://micropython.org/ &lt;br /&gt;
&lt;br /&gt;
= Option 1: REPL =&lt;br /&gt;
REPL stands for &amp;quot;[https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop Read–eval–print loop]&amp;quot; and allows you to run python code, line by line. This is a great way to see effects of certain hardware commands instantly and to test basic python features. &lt;br /&gt;
&lt;br /&gt;
This allows you to run code, line by line, on the badge and to see the effects instantly. Follow https://micropython.org/doc/tut-repl or follow step 1-4 on the [[TiLDA_MK3/Get_Started|Get Started]] guide. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; This will only work if you have an empty &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; on your badge to stop the home screen from taking over instantly. If an app or script is already running you will not get a REPL that you can use to program, but simple debug output instead. Remember to remove it afterwards if you want to use the home screen again.&lt;br /&gt;
&lt;br /&gt;
= Option 2: Copying files =&lt;br /&gt;
You can also copy your code to &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; on your badge, safely eject and then reset the badge via the button. To debug it you can use the serial console (see option 1) which will show you all text printed via &amp;lt;code&amp;gt;print()&amp;lt;/code&amp;gt; and errors.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; It's very important to always correctly &amp;quot;eject&amp;quot; the usb storage before pressing the reset button, otherwise your filesystem is going to corrupt and you might have to [[TiLDA_MK3/reset|factory reset]] your badge&lt;br /&gt;
&lt;br /&gt;
Remember to remove your main.py afterwards if you want to use the home screen again.&lt;br /&gt;
&lt;br /&gt;
= Option 3: pyboard.py =&lt;br /&gt;
You can also use micropythons's &amp;lt;code&amp;gt;pyboard.py&amp;lt;/code&amp;gt; script to automatically run a full local file of code without having to worry about copying it line-by-line or ejecting your device. &lt;br /&gt;
 &lt;br /&gt;
You can find a quick introduction on how to set it up [https://badge.emfcamp.org/wiki/TiLDA_MK3/Get_Started#5._Run_a_whole_file_of_code here].&lt;br /&gt;
&lt;br /&gt;
This option is very useful as a build script with your editor, it allows you to quickly test whether your app is working. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; While this option works even if you run the home screen, it works slightly better if you have an empty &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; on your badge.&lt;br /&gt;
&lt;br /&gt;
=== Sublime Text 2 build script ===&lt;br /&gt;
OSX:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;shell_cmd&amp;quot;: &amp;quot;/path/to/your/pyboard.py --device /dev/tty.usbmodem* $file&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=160</id>
		<title>TiLDA MK3</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=160"/>
		<updated>2016-08-06T08:25:06Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Using your badge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK3_front.jpg|right|500px|TiLDA Mkπ]]&lt;br /&gt;
&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;background-color: #FFFFDD; border: 1px solid #808000; padding: 5px;&amp;quot;&amp;gt;&amp;lt;strong&amp;gt;If you just got your badge and it doesn't do anything&amp;lt;/strong&amp;gt;, don't despair, quite a few of them need to be [[TiLDA_MK3/reset|factory reset]] before showing the loading screen. Press and hold &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; while quickly pressing the reset button at the back. Keep the &amp;lt;code&amp;gt;MENU&amp;lt;/code&amp;gt; button hold for another 2 seconds while the green light on the front is blinking. Release it &amp;lt;i&amp;gt;while&amp;lt;/i&amp;gt; the green light is on.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Change Name' app and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'App Library' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Browse App Store&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU and select &amp;quot;View all&amp;quot; to find your newly installed app. If you want to pin it to the quick launcher screen select your app and press MENU. If you just want to start it press A instead.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK3/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;A word of warning&amp;lt;/strong&amp;gt;: During EMF the badge will use &amp;quot;emf-insecure&amp;quot;. This is, as the name implies, not the most secure way of transmitting data. On top of that there are some problems with HTTPS and SSL, so we're not using it for with the default apps (we're working on it!). Please &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;don't send anything private or important to or from the badge via wifi&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK3/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK3/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK3/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK3/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK3/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Firmware&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Server&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK3/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/emfcamp/Mk3-Hardware/blob/master/case-final.dxf Laser cut case files]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK3/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK3/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK3/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK3/adc|ADC]] (analogue reading)&lt;br /&gt;
* [[TiLDA MK3/timer|Timer]]&lt;br /&gt;
* Microcontroller peripherals [https://micropython.org/doc/module/pyb/] (Timers, PWM, serial etc)&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
TBD, for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk3-Firmware/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
* [[TiLDA MK3/lib/buttons|buttons]]&lt;br /&gt;
* database&lt;br /&gt;
* dialogs&lt;br /&gt;
* filesystem&lt;br /&gt;
* http_client&lt;br /&gt;
* imu&lt;br /&gt;
* wifi&lt;br /&gt;
* NTP Example: https://gist.github.com/drrk/4a17c4394f93d0f9123560af056f6f30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Colour LCD screen 320x240&lt;br /&gt;
* Joystick and A/B/Menu Buttons&lt;br /&gt;
* Wifi (cc3100)&lt;br /&gt;
* Accelerometer&lt;br /&gt;
* Compass&lt;br /&gt;
* Buzzer&lt;br /&gt;
* Battery&lt;br /&gt;
* &amp;lt;s&amp;gt;WS2812B aka &amp;quot;Neo Pixel&amp;quot;&amp;lt;/s&amp;gt; Sadly defunct - come to the badge tent to have it fixed :(&lt;br /&gt;
* MicroSD slot&lt;br /&gt;
&lt;br /&gt;
[[File:pinout-1.png | 500px]] [[File:pinout2-1.png | 500px]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Run_Code&amp;diff=159</id>
		<title>TiLDA MK3/Run Code</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Run_Code&amp;diff=159"/>
		<updated>2016-08-06T08:17:46Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Option 1: REPL =&lt;br /&gt;
REPL stands for &amp;quot;[https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop Read–eval–print loop]&amp;quot; and allows you to run python code, line by line. This is a great way to see effects of certain hardware commands instantly and to test basic python features. &lt;br /&gt;
&lt;br /&gt;
This allows you to run code, line by line, on the badge and to see the effects instantly. Follow https://micropython.org/doc/tut-repl or follow step 1-4 on the [[TiLDA_MK3/Get_Started|Get Started]] guide. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; This will only work if you have an empty &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; on your badge to stop the home screen from taking over instantly. If an app or script is already running you will not get a REPL that you can use to program, but simple debug output instead. Remember to remove it afterwards if you want to use the home screen again.&lt;br /&gt;
&lt;br /&gt;
= Option 2: Copying files =&lt;br /&gt;
You can also copy your code to &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; on your badge, safely eject and then reset the badge via the button. To debug it you can use the serial console (see option 1) which will show you all text printed via &amp;lt;code&amp;gt;print()&amp;lt;/code&amp;gt; and errors.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; It's very important to always correctly &amp;quot;eject&amp;quot; the usb storage before pressing the reset button, otherwise your filesystem is going to corrupt and you might have to [[TiLDA_MK3/reset|factory reset]] your badge&lt;br /&gt;
&lt;br /&gt;
Remember to remove your main.py afterwards if you want to use the home screen again.&lt;br /&gt;
&lt;br /&gt;
= Option 3: pyboard.py =&lt;br /&gt;
You can also use micropythons's &amp;lt;code&amp;gt;pyboard.py&amp;lt;/code&amp;gt; script to automatically run a full local file of code without having to worry about copying it line-by-line or ejecting your device. &lt;br /&gt;
 &lt;br /&gt;
You can find a quick introduction on how to set it up [https://badge.emfcamp.org/wiki/TiLDA_MK3/Get_Started#5._Run_a_whole_file_of_code here].&lt;br /&gt;
&lt;br /&gt;
This option is very useful as a build script with your editor, it allows you to quickly test whether your app is working. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; While this option works even if you run the home screen, it works slightly better if you have an empty &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; on your badge.&lt;br /&gt;
&lt;br /&gt;
=== Sublime Text 2 build script ===&lt;br /&gt;
OSX:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;shell_cmd&amp;quot;: &amp;quot;/path/to/your/pyboard.py --device /dev/tty.usbmodem* $file&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Run_Code&amp;diff=158</id>
		<title>TiLDA MK3/Run Code</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Run_Code&amp;diff=158"/>
		<updated>2016-08-06T08:17:05Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Option 1: REPL =&lt;br /&gt;
REPL stands for &amp;quot;[https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop Read–eval–print loop]&amp;quot; and allows you to run python code, line by line. This is a great way to see effects of certain hardware commands instantly and to test basic python features. &lt;br /&gt;
&lt;br /&gt;
This allows you to run code, line by line, on the badge and to see the effects instantly. Follow https://micropython.org/doc/tut-repl or follow step 1-4 on the [[TiLDA_MK3/Get_Started|Get Started]] guide. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; This will only work if you have an empty &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; on your badge to stop the home screen from taking over instantly. If an app or script is already running you will not get a REPL that you can use to program, but simple debug output instead. Remember to remove it afterwards if you want to use the home screen again.&lt;br /&gt;
&lt;br /&gt;
= Option 2: Copying files =&lt;br /&gt;
You can also copy your code to &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; on your badge, safely eject and then reset the badge via the button. To debug it you can use the serial console (see option 1) which will show you all text printed via &amp;lt;code&amp;gt;print()&amp;lt;/code&amp;gt; and errors.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; It's very important to always correctly &amp;quot;eject&amp;quot; the usb storage before pressing the reset button, otherwise your filesystem is going to corrupt and you might have to [[TiLDA_MK3/reset|factory reset]] your badge&lt;br /&gt;
&lt;br /&gt;
Remember to remove your main.py afterwards if you want to use the home screen again.&lt;br /&gt;
&lt;br /&gt;
= Option 3: pyboard.py =&lt;br /&gt;
You can also use micropythons's &amp;lt;code&amp;gt;pyboard.py&amp;lt;/code&amp;gt; script to automatically run a full local file of code without having to worry about copying it line-by-line or ejecting your device. &lt;br /&gt;
 &lt;br /&gt;
You can find a quick introduction on how to set it up [https://badge.emfcamp.org/wiki/TiLDA_MK3/Get_Started#5._Run_a_whole_file_of_code here].&lt;br /&gt;
&lt;br /&gt;
This option is very useful as a build script with your editor, it allows you to quickly test whether your app is working. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; While this option works even if you run the home screen, it works slightly better if you have an empty &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; on your badge.&lt;br /&gt;
&lt;br /&gt;
== Sublime Text 2 build script ==&lt;br /&gt;
OSX:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
    &amp;quot;shell_cmd&amp;quot;: &amp;quot;/path/to/your/pyboard.py --device /dev/tty.usbmodem* $file&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Run_Code&amp;diff=155</id>
		<title>TiLDA MK3/Run Code</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Run_Code&amp;diff=155"/>
		<updated>2016-08-06T08:07:36Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Option 2: Copying files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Option 1: REPL =&lt;br /&gt;
REPL stands for &amp;quot;[https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop Read–eval–print loop]&amp;quot; and allows you to run python code, line by line. This is a great way to see effects of certain hardware commands instantly and to test basic python features. &lt;br /&gt;
&lt;br /&gt;
This allows you to run code, line by line, on the badge and to see the effects instantly. Follow https://micropython.org/doc/tut-repl or follow step 1-4 on the [[TiLDA_MK3/Get_Started|Get Started]] guide. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; This will only work if you have an empty &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; on your badge to stop the home screen from taking over instantly. If an app or script is already running you will not get a REPL that you can use to program, but simple debug output instead. &lt;br /&gt;
&lt;br /&gt;
= Option 2: Copying files =&lt;br /&gt;
You can also copy your code to &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; on your badge, safely eject and then reset the badge via the button. To debug it you can use the serial console (see option 1) which will show you all text printed via &amp;lt;code&amp;gt;print()&amp;lt;/code&amp;gt; and errors.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; It's very important to always correctly &amp;quot;eject&amp;quot; the usb storage before pressing the reset button, otherwise your filesystem is going to corrupt and you might have to [[TiLDA_MK3/reset|factory reset]] your badge&lt;br /&gt;
&lt;br /&gt;
= Option 3: pyboard.py =&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Run_Code&amp;diff=153</id>
		<title>TiLDA MK3/Run Code</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Run_Code&amp;diff=153"/>
		<updated>2016-08-06T08:00:46Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: Created page with &amp;quot;= Option 1: REPL = REPL stands for &amp;quot;[https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop Read–eval–print loop]&amp;quot; and allows you to run python code, line by l...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Option 1: REPL =&lt;br /&gt;
REPL stands for &amp;quot;[https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop Read–eval–print loop]&amp;quot; and allows you to run python code, line by line. This is a great way to see effects of certain hardware commands instantly and to test basic python features. &lt;br /&gt;
&lt;br /&gt;
This allows you to run code, line by line, on the badge and to see the effects instantly. Follow https://micropython.org/doc/tut-repl or follow step 1-4 on the [[TiLDA_MK3/Get_Started|Get Started]] guide. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;Note:&amp;lt;/strong&amp;gt; This will only work if you have an empty &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; on your badge to stop the home screen from taking over instantly. If an app or script is already running you will not get a REPL that you can use to program, but simple debug output instead. &lt;br /&gt;
&lt;br /&gt;
= Option 2: Copying files =&lt;br /&gt;
You can also copy your code to &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; on your badge, safely eject and then reset the badge via the button. To debug it you can use the serial console (see option 1) which will show you all text printed via &amp;lt;code&amp;gt;print()&amp;lt;/code&amp;gt; and errors. &lt;br /&gt;
&lt;br /&gt;
= Option 3: pyboard.py =&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/reset&amp;diff=152</id>
		<title>TiLDA MK3/reset</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/reset&amp;diff=152"/>
		<updated>2016-08-06T07:49:45Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Should things stop working there are multiple ways to get your badge working again. Please make sure you have a backup of whatever you've been working on, you might lose all the data stored on you badge:&lt;br /&gt;
* Try deleting the file you have been working on, &amp;quot;safely eject&amp;quot; the badge and then press the reset button. &lt;br /&gt;
* Delete all other files apart from &amp;lt;code&amp;gt;boot.py&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;wifi.json&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;bootstrap.py&amp;lt;/code&amp;gt;, &amp;quot;safely eject&amp;quot; the badge and then press the reset button.&lt;br /&gt;
* Factory reset the filesytem. Press and hold 'MENU' while quickly pressing the reset button at the back. Keep the MENU button hold for another 2 seconds while the green light on the front is blinking. Release it while the green light is on. (See [https://micropython.org/doc/tut-reset here] for more information. The USR button equals the MENU button, the orange light doesn't exist)&lt;br /&gt;
&lt;br /&gt;
All these steps should finally get you to a screen saying &amp;quot;Downloading TiLDA software&amp;quot;. It should take less than a minute until the bare badge functionalities are restored.&lt;br /&gt;
&lt;br /&gt;
'''Note''': If you're not at the camp site you might now have to open the USB storage and edit the details in the wifi.json. Don't forget to &amp;quot;safely eject&amp;quot; and to press the reset button if you do so.&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=151</id>
		<title>TiLDA MK3</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=151"/>
		<updated>2016-08-06T07:49:06Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* WiFi */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK3_front.jpg|right|500px|TiLDA Mkπ]]&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Change Name' app and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'App Library' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Browse App Store&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU and select &amp;quot;View all&amp;quot; to find your newly installed app. If you want to pin it to the quick launcher screen select your app and press MENU. If you just want to start it press A instead.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK3/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;strong&amp;gt;A word of warning&amp;lt;/strong&amp;gt;: During EMF the badge will use &amp;quot;emf-insecure&amp;quot;. This is, as the name implies, not the most secure way of transmitting data. On top of that there are some problems with HTTPS and SSL, so we're not using it for with the default apps (we're working on it!). Please &amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;don't send anything private or important to or from the badge via wifi&amp;lt;/span&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK3/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK3/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK3/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK3/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK3/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Firmware&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Server&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK3/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/emfcamp/Mk3-Hardware/blob/master/case-final.dxf Laser cut case files]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK3/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK3/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK3/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK3/adc|ADC]] (analogue reading)&lt;br /&gt;
* [[TiLDA MK3/timer|Timer]]&lt;br /&gt;
* Microcontroller peripherals [https://micropython.org/doc/module/pyb/] (Timers, PWM, serial etc)&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
TBD, for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk3-Firmware/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
* [[TiLDA MK3/lib/buttons|buttons]]&lt;br /&gt;
* database&lt;br /&gt;
* dialogs&lt;br /&gt;
* filesystem&lt;br /&gt;
* http_client&lt;br /&gt;
* imu&lt;br /&gt;
* wifi&lt;br /&gt;
* NTP Example: https://gist.github.com/drrk/4a17c4394f93d0f9123560af056f6f30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Colour LCD screen 320x240&lt;br /&gt;
* Joystick and A/B/Menu Buttons&lt;br /&gt;
* Wifi (cc3100)&lt;br /&gt;
* Accelerometer&lt;br /&gt;
* Compass&lt;br /&gt;
* Buzzer&lt;br /&gt;
* Battery&lt;br /&gt;
* &amp;lt;s&amp;gt;WS2812B aka &amp;quot;Neo Pixel&amp;quot;&amp;lt;/s&amp;gt; Sadly defunct - come to the badge tent to have it fixed :(&lt;br /&gt;
* MicroSD slot&lt;br /&gt;
&lt;br /&gt;
[[File:pinout-1.png | 500px]] [[File:pinout2-1.png | 500px]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=149</id>
		<title>TiLDA MK3</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=149"/>
		<updated>2016-08-06T07:47:06Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK3_front.jpg|right|500px|TiLDA Mkπ]]&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Change Name' app and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'App Library' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Browse App Store&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU and select &amp;quot;View all&amp;quot; to find your newly installed app. If you want to pin it to the quick launcher screen select your app and press MENU. If you just want to start it press A instead.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK3/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
'''A word of warning''': During EMF the badge will use &amp;quot;emf-insecure&amp;quot;. This is, as the name implies, not the most secure way of transmitting data. On top of that there are some problems with HTTPS and SSL (we're working on it!), so please '''&amp;lt;span style=&amp;quot;color:red&amp;quot;&amp;gt;don't send anything private or important to or from the badge via wifi&amp;lt;/span&amp;gt;'''.&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK3/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK3/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK3/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK3/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK3/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Firmware&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Server&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK3/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/emfcamp/Mk3-Hardware/blob/master/case-final.dxf Laser cut case files]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK3/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK3/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK3/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK3/adc|ADC]] (analogue reading)&lt;br /&gt;
* [[TiLDA MK3/timer|Timer]]&lt;br /&gt;
* Microcontroller peripherals [https://micropython.org/doc/module/pyb/] (Timers, PWM, serial etc)&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
TBD, for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk3-Firmware/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
* [[TiLDA MK3/lib/buttons|buttons]]&lt;br /&gt;
* database&lt;br /&gt;
* dialogs&lt;br /&gt;
* filesystem&lt;br /&gt;
* http_client&lt;br /&gt;
* imu&lt;br /&gt;
* wifi&lt;br /&gt;
* NTP Example: https://gist.github.com/drrk/4a17c4394f93d0f9123560af056f6f30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Colour LCD screen 320x240&lt;br /&gt;
* Joystick and A/B/Menu Buttons&lt;br /&gt;
* Wifi (cc3100)&lt;br /&gt;
* Accelerometer&lt;br /&gt;
* Compass&lt;br /&gt;
* Buzzer&lt;br /&gt;
* Battery&lt;br /&gt;
* &amp;lt;s&amp;gt;WS2812B aka &amp;quot;Neo Pixel&amp;quot;&amp;lt;/s&amp;gt; Sadly defunct - come to the badge tent to have it fixed :(&lt;br /&gt;
* MicroSD slot&lt;br /&gt;
&lt;br /&gt;
[[File:pinout-1.png | 500px]] [[File:pinout2-1.png | 500px]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/wifi&amp;diff=148</id>
		<title>TiLDA MK3/wifi</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/wifi&amp;diff=148"/>
		<updated>2016-08-06T07:42:15Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* wifi.json */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= wifi.json =&lt;br /&gt;
A simple json document in the root directory of the badge:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{&amp;quot;ssid&amp;quot;:&amp;quot;your-wifi-name&amp;quot;,&amp;quot;pw&amp;quot;:&amp;quot;your-wifi-password&amp;quot;}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you're connecting to an open wifi you can leave out the &amp;quot;pw&amp;quot; :&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{&amp;quot;ssid&amp;quot;:&amp;quot;your-unsecured-wifi-name&amp;quot;}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Most badge apps that use the wifi chip will expect a wifi.json file to exist. Please make sure it's valid json and that both name and password are in the correct case. &lt;br /&gt;
&lt;br /&gt;
Please make sure to &amp;quot;eject&amp;quot; the usb storage properly before restarting the badge.&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=147</id>
		<title>TiLDA MK3</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=147"/>
		<updated>2016-08-06T07:41:00Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Basic usage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK3_front.jpg|right|500px|TiLDA Mkπ]]&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
ToDo: Explain Home Screen&lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Change Name' app and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
==== Installing new apps ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'App Library' app and press 'A'&lt;br /&gt;
# Select &amp;quot;Browse App Store&amp;quot;&lt;br /&gt;
# Select a category and then an app. Wait until you see the description and press &amp;quot;A&amp;quot; to save it.&lt;br /&gt;
# Press B a few times (or alternatively MENU) to restart your badge&lt;br /&gt;
# On the home screen you can now press MENU and select &amp;quot;View all&amp;quot; to find your newly installed app. If you want to pin it to the quick launcher screen select your app and press MENU. If you just want to start it press A instead.&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK3/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK3/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK3/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK3/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK3/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK3/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Firmware&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Server&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK3/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/emfcamp/Mk3-Hardware/blob/master/case-final.dxf Laser cut case files]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK3/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK3/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK3/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK3/adc|ADC]] (analogue reading)&lt;br /&gt;
* [[TiLDA MK3/timer|Timer]]&lt;br /&gt;
* Microcontroller peripherals [https://micropython.org/doc/module/pyb/] (Timers, PWM, serial etc)&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
TBD, for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk3-Firmware/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
* [[TiLDA MK3/lib/buttons|buttons]]&lt;br /&gt;
* database&lt;br /&gt;
* dialogs&lt;br /&gt;
* filesystem&lt;br /&gt;
* http_client&lt;br /&gt;
* imu&lt;br /&gt;
* wifi&lt;br /&gt;
* NTP Example: https://gist.github.com/drrk/4a17c4394f93d0f9123560af056f6f30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Colour LCD screen 320x240&lt;br /&gt;
* Joystick and A/B/Menu Buttons&lt;br /&gt;
* Wifi (cc3100)&lt;br /&gt;
* Accelerometer&lt;br /&gt;
* Compass&lt;br /&gt;
* Buzzer&lt;br /&gt;
* Battery&lt;br /&gt;
* &amp;lt;s&amp;gt;WS2812B aka &amp;quot;Neo Pixel&amp;quot;&amp;lt;/s&amp;gt; Sadly defunct - come to the badge tent to have it fixed :(&lt;br /&gt;
* MicroSD slot&lt;br /&gt;
&lt;br /&gt;
[[File:pinout-1.png | 500px]] [[File:pinout2-1.png | 500px]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=146</id>
		<title>TiLDA MK3</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3&amp;diff=146"/>
		<updated>2016-08-06T07:37:30Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: /* Hacking your badge */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:TiLDA_MK3_front.jpg|right|500px|TiLDA Mkπ]]&lt;br /&gt;
== Using your badge ==&lt;br /&gt;
&lt;br /&gt;
=== Assembly ===&lt;br /&gt;
With your badge you will receive a booklet explaining how it's done. If you have any problems, please come to the Badge Operation Center and we will help you.&lt;br /&gt;
&lt;br /&gt;
=== Basic usage ===&lt;br /&gt;
After you have assembled your badge you can just use the tiny switch at the bottom of the screen to turn your badge on. Alternatively you can use any USB power source. If you turn your badge on for the first time (or if for some reason it has reset itself) you will get some on-screen information while we try to download the newest set of software. &lt;br /&gt;
&lt;br /&gt;
If at any point you want to restart your badge you can just press the reset button at the back. &lt;br /&gt;
&lt;br /&gt;
ToDo: Explain Home Screen&lt;br /&gt;
&lt;br /&gt;
ToDo: Explain App Library&lt;br /&gt;
&lt;br /&gt;
==== Changing your name ====&lt;br /&gt;
&lt;br /&gt;
# Press 'Menu'&lt;br /&gt;
# Select the 'Change Name' app and press 'A'&lt;br /&gt;
# Use the joystick and 'A' key to enter your name&lt;br /&gt;
# Press 'Menu' to save your name and reset the badge - your name should now be displayed!&lt;br /&gt;
&lt;br /&gt;
=== WiFi ===&lt;br /&gt;
Your TiLDA Badge has built-in wifi support. It should all just work if you're at the campsite, but if you're on your own network you might have to tell the badge about it. For more information please have a look here: [[TiLDA MK3/wifi|WiFi]]&lt;br /&gt;
&lt;br /&gt;
=== Charging ===&lt;br /&gt;
The badge charges via a microUSB socket, and takes about 2-3 hours for a full charge. The red charge LED next to the USB connector will extinguish when charging is complete&lt;br /&gt;
&lt;br /&gt;
=== Nothing works! Help! ===&lt;br /&gt;
&lt;br /&gt;
Don't worry, you can always &amp;quot;factory reset&amp;quot; your badge. Please follow these instructions: [[TiLDA_MK3/reset|Resetting]]&lt;br /&gt;
&lt;br /&gt;
== Hacking your badge ==&lt;br /&gt;
&lt;br /&gt;
One of the main goals of TiLDA is to make hacking it as easy as possible. All you need to do so is a computer with USB and your badge.&lt;br /&gt;
&lt;br /&gt;
* '''[[TiLDA MK3/Get Started|Step-by-step: How to get started]]''' &lt;br /&gt;
* '''[[TiLDA MK3/Run Code|3 Ways to run code on your TiLDA]]''' &lt;br /&gt;
&lt;br /&gt;
The badge itself runs code written in the computer language [https://en.wikipedia.org/wiki/Python_(programming_language) Python] which is run by a bit of software called [https://micropython.org/ Micropython]. &lt;br /&gt;
&lt;br /&gt;
For more information about the functions available please have a look at the [[#Badge API|Badge API]] section of this page.&lt;br /&gt;
&lt;br /&gt;
If you're already familiar with all this you can jump right into the topic of Apps. Apps can be shared via the EMF App Library or by copying files of and on via USB. If you want to know more about how this works go to [[TiLDA MK3/apps]]&lt;br /&gt;
&lt;br /&gt;
In case you're more interested in what makes the hardware tick and your confident with C++ and microprocessors then you can work directly with the micropython code that runs TiLDA: [[TiLDA MK3/build|How to build the firmware from scratch]]&lt;br /&gt;
&lt;br /&gt;
All code used is hosted on Github. Contributions and PR are very welcome!&lt;br /&gt;
* https://github.com/emfcamp/micropython&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Firmware&lt;br /&gt;
* https://github.com/emfcamp/Mk3-Server&lt;br /&gt;
&lt;br /&gt;
=== Some ideas ===&lt;br /&gt;
&lt;br /&gt;
[[TiLDA MK3/Ideas|Please share what you've done (or want to do) with others!]]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/emfcamp/Mk3-Hardware/blob/master/case-final.dxf Laser cut case files]&lt;br /&gt;
&lt;br /&gt;
== Badge API ==&lt;br /&gt;
&lt;br /&gt;
=== Build-in ===&lt;br /&gt;
* [http://docs.micropython.org/en/latest/pyboard/ documentation] - General Micropython libarary&lt;br /&gt;
* [[TiLDA MK3/ugfx|uGFX]] - The TiLDA LCD colour screen&lt;br /&gt;
* [[TiLDA MK3/documentation/cc3100|CC3100]] - The wifi chip&lt;br /&gt;
* [[TiLDA MK3/rtc|RTC]] (real time clock)&lt;br /&gt;
* [[TiLDA MK3/adc|ADC]] (analogue reading)&lt;br /&gt;
* [[TiLDA MK3/timer|Timer]]&lt;br /&gt;
* Microcontroller peripherals [https://micropython.org/doc/module/pyb/] (Timers, PWM, serial etc)&lt;br /&gt;
&lt;br /&gt;
=== TiLDA Libraries ===&lt;br /&gt;
On top of the build-in modules above we have also created a bunch of helpful libraries written in python. If you go through the bootstrap process or use the App Library you should always have a full set of those on your badge. If for some reason this isn't the case you can download our repository from https://github.com/emfcamp/Mk3-Firmware and copy the &amp;lt;code&amp;gt;lib&amp;lt;/code&amp;gt; folder onto your badge.&lt;br /&gt;
&lt;br /&gt;
TBD, for now please have a look at the libraries themselves: https://github.com/emfcamp/Mk3-Firmware/tree/master/lib&lt;br /&gt;
&lt;br /&gt;
* [[TiLDA MK3/lib/buttons|buttons]]&lt;br /&gt;
* database&lt;br /&gt;
* dialogs&lt;br /&gt;
* filesystem&lt;br /&gt;
* http_client&lt;br /&gt;
* imu&lt;br /&gt;
* wifi&lt;br /&gt;
* NTP Example: https://gist.github.com/drrk/4a17c4394f93d0f9123560af056f6f30&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
(feel free to add additional ideas, and create links new wiki pages to on-going projects, perhaps someone will want to contribute)&lt;br /&gt;
&lt;br /&gt;
== Badge hardware ==&lt;br /&gt;
TiLDA comes with a long list of very useful hardware. Some might be obvious, but some are a bit hidden. &lt;br /&gt;
* Colour LCD screen 320x240&lt;br /&gt;
* Joystick and A/B/Menu Buttons&lt;br /&gt;
* Wifi (cc3100)&lt;br /&gt;
* Accelerometer&lt;br /&gt;
* Compass&lt;br /&gt;
* Buzzer&lt;br /&gt;
* Battery&lt;br /&gt;
* &amp;lt;s&amp;gt;WS2812B aka &amp;quot;Neo Pixel&amp;quot;&amp;lt;/s&amp;gt; Sadly defunct - come to the badge tent to have it fixed :(&lt;br /&gt;
* MicroSD slot&lt;br /&gt;
&lt;br /&gt;
[[File:pinout-1.png | 500px]] [[File:pinout2-1.png | 500px]]&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
	<entry>
		<id>https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Get_Started&amp;diff=144</id>
		<title>TiLDA MK3/Get Started</title>
		<link rel="alternate" type="text/html" href="https://badge.emfcamp.org/w/index.php?title=TiLDA_MK3/Get_Started&amp;diff=144"/>
		<updated>2016-08-05T21:15:49Z</updated>

		<summary type="html">&lt;p&gt;Marekventur: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Get started =&lt;br /&gt;
&lt;br /&gt;
Hacking your TiLDA badge is easy. We've written it down step by step. &lt;br /&gt;
&lt;br /&gt;
If something goes wrong, the badge can be [[TiLDA_MK3/reset|reset]] to its out-of-the-box state, so do not be concerned about breaking anything.&lt;br /&gt;
&lt;br /&gt;
== 1. Connect to your computer ==&lt;br /&gt;
To get started you need to connect your badge to a computer. You can use any MicroUSB cable - the same type that charges most mobile phones nowadays. It doesn't matter whether the batter is plugged in or not, so don't worry about it.&lt;br /&gt;
&lt;br /&gt;
== 2. Check your badge is found by your computer ==&lt;br /&gt;
Upon connecting the badge to a computer, it should appear as a &amp;quot;mass storage device&amp;quot; just like a USB key or an external hard disk. &lt;br /&gt;
&lt;br /&gt;
'''Important:''' Just like any other USB storage device, if you changed or copied anything on the Badge, please make sure to &amp;quot;eject&amp;quot; or &amp;quot;safely remove&amp;quot; before unplugging your badge or pressing the reset button. Otherwise you might lose all your work :(&lt;br /&gt;
&lt;br /&gt;
Windows will require a driver file for the serial port, which is stored on the badge's mass storage. [https://micropython.org/resources/Micro-Python-Windows-setup.pdf More information]&lt;br /&gt;
&lt;br /&gt;
== 3. Connect to your badge ==&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
* Please follow the instruction under the &amp;quot;Windows&amp;quot; section on this page: https://micropython.org/doc/tut-repl&lt;br /&gt;
* Once you've installed the driver and Putty and you've connected to your badge, press Control+C to stop the main badge app, and then you should be greeted by a line saying &amp;quot;Micropython&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== OSX ===&lt;br /&gt;
* Click the magnifying class in the top right of your screen and type &amp;lt;code&amp;gt;Terminal&amp;lt;/code&amp;gt; followed by Enter. A white terminal window should appear.&lt;br /&gt;
* type &amp;lt;code&amp;gt;/dev/tty.usbmodem*&amp;lt;/code&amp;gt; (The * is important, so don't let it out) and hit enter&lt;br /&gt;
* You should now be greeted by a line saying &amp;quot;Micropython&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Linux ===&lt;br /&gt;
* Open a terminal and type &amp;lt;code&amp;gt;screen /dev/ttyACM0&amp;lt;/code&amp;gt;&lt;br /&gt;
* You should now be greeted by a line saying &amp;quot;Micropython&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== What to do if this step doesn't work? ===&lt;br /&gt;
* Press the reset button at the back of your badge and try again&lt;br /&gt;
* Have a look at https://micropython.org/doc/tut-repl for more information&lt;br /&gt;
&lt;br /&gt;
== 4. Your first line of Micropython ==&lt;br /&gt;
* In your terminal (next to the &amp;gt;&amp;gt;&amp;gt;) type &amp;lt;code&amp;gt;print(1 + 1)&amp;lt;/code&amp;gt; followed by Enter&lt;br /&gt;
* You should see &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt; printed on the screen. Congratulations, you've just written your first line of micropython code!&lt;br /&gt;
* You can now close the terminal window (or Putty, if you're on Windows). Note: some serial terminals will not close when the badge is removed or powered off. You should close the serial terminal before plugging the badge back in, otherwise the serial terminal may not reconnect.&lt;br /&gt;
&lt;br /&gt;
== 5. Download some software you'll need ==&lt;br /&gt;
&lt;br /&gt;
You will be downloading some stuff now. It's probably be best if you create some folder somewhere so you don't end up with files all over your Desktop.&lt;br /&gt;
&lt;br /&gt;
Note you can copy files across from your computer to the badge, reset the badge and run the files though the menu, however these instructions make things a little easier.&lt;br /&gt;
&lt;br /&gt;
=== Windows ===&lt;br /&gt;
* Python: Go to https://www.python.org/downloads/ and download python version 3.x. After the download is finished you can install it.&lt;br /&gt;
* Go to https://bootstrap.pypa.io/get-pip.py and save the file into your folder&lt;br /&gt;
* Hold shift, right click on the folder on, and click &amp;quot;open command window here&amp;quot;&lt;br /&gt;
* Now type &amp;lt;code&amp;gt;python get-pip.py&amp;lt;/code&amp;gt;&lt;br /&gt;
* After the install was successful please type &amp;lt;code&amp;gt;pip install pyserial pyusb&amp;lt;/code&amp;gt; followed by Enter.&lt;br /&gt;
* If you do not wish to install python, and would rather copy files across, the command line utility RoboCopy is recommended. For example: &amp;lt;code&amp;gt;Robocopy.exe ./my_app/ d:/apps/my_app&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== OSX / Linux ===&lt;br /&gt;
&lt;br /&gt;
* Python: Open a terminal and type &amp;lt;code&amp;gt;python --version&amp;lt;/code&amp;gt;. If you get a version number you're good to go, otherwise go to https://www.python.org/downloads/ and download Python version 3.x. After the download is finished you can install it.&lt;br /&gt;
* Go to https://bootstrap.pypa.io/get-pip.py and save the file into your folder&lt;br /&gt;
* Use a terminal to go to the folder you created ([http://www.macworld.com/article/2042378/master-the-command-line-navigating-files-and-folders.html this is how you do it]) and type &amp;lt;code&amp;gt;python get-pip.py&amp;lt;/code&amp;gt;&lt;br /&gt;
* Now type &amp;lt;code&amp;gt;python get-pip.py&amp;lt;/code&amp;gt;&lt;br /&gt;
* After the install was successful please type &amp;lt;code&amp;gt;pip install pyserial pyusb&amp;lt;/code&amp;gt; followed by Enter&lt;br /&gt;
&lt;br /&gt;
=== Problems ===&lt;br /&gt;
* If you have problems install python, please use google, there are lots of good explanations out there&lt;br /&gt;
* For information about how to install &amp;lt;code&amp;gt;pip&amp;lt;/code&amp;gt; have a look here: https://pip.pypa.io/en/stable/installing/&lt;br /&gt;
&lt;br /&gt;
== 6. (Optional) Update your badge's micropython ==&lt;br /&gt;
'You can skip this step', but since TiLDA is still a work in progress, it's best to update regularly. So why not do it now? It's easy, just follow the instructions on https://update.badge.emfcamp.org.&lt;br /&gt;
&lt;br /&gt;
== 5. Run a whole file of code ==&lt;br /&gt;
While you can do most things via the terminal like you just did, it's a bit easier to work on a file that you can edit. So let's do that. &lt;br /&gt;
* Go to https://raw.githubusercontent.com/emfcamp/micropython/tilda-master/tools/pyboard.py and use your browser to save it as &amp;quot;pyboard.py&amp;quot; into your newly created folder&lt;br /&gt;
* Open a text editor. On Windows you can search for &amp;lt;code&amp;gt;Notepad&amp;lt;/code&amp;gt;, on OSX there's one called &amp;lt;code&amp;gt;textedit&amp;lt;/code&amp;gt; and if you're on Linux you can probably find one by searching for &amp;quot;edit&amp;quot;. &lt;br /&gt;
* Copy the following and save it as &amp;lt;code&amp;gt;test.py&amp;lt;/code&amp;gt; in your folder:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
print(1 + 2)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
* Open a terminal, navigate to the right folder (see step 5 for more info) &lt;br /&gt;
** Windows: ToDo&lt;br /&gt;
** OSX: type &amp;lt;code&amp;gt;python pyboard.py test.py --device=/dev/tty.usbmodem*&amp;lt;/code&amp;gt;&lt;br /&gt;
** Linux: type &amp;lt;code&amp;gt;python pyboard.py test.py --device=/dev/ttyACM*&amp;lt;/code&amp;gt;&lt;br /&gt;
* You should now see the your terminal showing &amp;lt;code&amp;gt;3&amp;lt;/code&amp;gt;. Your getting good at this!&lt;br /&gt;
&lt;br /&gt;
'''Hint''': If you don't want the home app to start every time you can create an empty &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; file in the USB folder. This will stop the boot from loading the home screen and allow you do run code on your badge undisturbed. But remember to &amp;quot;safely eject&amp;quot; the badge after writing the file and to remove it again when you want the normal behaviour back&lt;br /&gt;
&lt;br /&gt;
== 7. Blink ==&lt;br /&gt;
So far all we've seen is the badge doing some maths and sending the result back via usb. Let's start with one of the simplest hardware device on the badge, a LED (which means &amp;quot;Light emitting diode&amp;quot;) -- We want to make it blink.&lt;br /&gt;
&lt;br /&gt;
Create a file called &amp;lt;code&amp;gt;blink.py&amp;lt;/code&amp;gt; and copy this bit of code into it:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import pyb&lt;br /&gt;
led = pyb.LED(1)&lt;br /&gt;
led.on()&lt;br /&gt;
pyb.delay(500)&lt;br /&gt;
led.off()&lt;br /&gt;
pyb.delay(500)&lt;br /&gt;
led.on()&lt;br /&gt;
pyb.delay(500)&lt;br /&gt;
led.off()&lt;br /&gt;
pyb.delay(500)&lt;br /&gt;
led.on()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save it and use a terminal to execute it (See Step 5 - but make sure to replace the filename in the command). Have a look at your badge, you should see the tiny LED labeled &amp;quot;A&amp;quot; (It's right between the B button and the screen) flash twice before and then staying on. &lt;br /&gt;
&lt;br /&gt;
Now, let's see what the code actually does. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import pyb&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This line tells your badge to import the &amp;quot;pyb&amp;quot; library. It allows you to do various hardware related things with your badge (the full list is [http://docs.micropython.org/en/latest/pyboard/library/pyb.html here]). This is something very important in python, you always need to import libraries before you can use them.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
led = pyb.LED(1)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This line uses the pyb module we've just imported and creates a LED object. The &amp;quot;&amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;&amp;quot; means we're using the first LED on the badge. Change it to &amp;quot;&amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;&amp;quot;, save it and run pyboard.py again - Now the LED B should flash in green. &lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;led&amp;lt;/code&amp;gt; bit before the &amp;lt;code&amp;gt;=&amp;lt;/code&amp;gt; means that we're not only creating an LED object, but we're also storing it for later use. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
led.on()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Here we're using the reference to the LED object we've just created and calling the &amp;lt;code&amp;gt;.on()&amp;lt;/code&amp;gt; function on it. Most python objects have multiple functions you can use. In this case you can look the them up here: http://docs.micropython.org/en/latest/pyboard/library/pyb.LED.html?highlight=led&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
pyb.delay(500)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This line uses the &amp;lt;code&amp;gt;pyb.delay()&amp;lt;/code&amp;gt; function to pause the execution of our program for a while. The &amp;lt;code&amp;gt;500&amp;lt;/code&amp;gt; is a number in milliseconds and the code is stopping for half a second. We need this delay to give your eyes some time to see that the LED has turned on. Try playing with different numbers or leaving the line out altogether to get a feeling for it.&lt;br /&gt;
&lt;br /&gt;
== 8. Blink forever ==&lt;br /&gt;
Since our original &amp;lt;code&amp;gt;blink.py&amp;lt;/code&amp;gt; script is only blinking twice it might be easy to miss. Let's fix this by blinking a bit longer:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import pyb&lt;br /&gt;
led = pyb.LED(1)&lt;br /&gt;
while True:&lt;br /&gt;
	led.toggle()&lt;br /&gt;
	pyb.delay(500)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Be careful to make sure you're copying the spaces in front of the last two lines as well, they're very important in Python! If you want to type them you have to use the &amp;lt;code&amp;gt;Tab&amp;lt;/code&amp;gt; key on your keyboard - It's normally on the left of your keyboard, two keys above the &amp;lt;code&amp;gt;Shift&amp;lt;/code&amp;gt; key. &lt;br /&gt;
&lt;br /&gt;
Save this code and run it via &amp;lt;code&amp;gt;pyboard.py&amp;lt;/code&amp;gt; again. You should now see the red LED blinking forever.  So what's happening here?&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
while True:&lt;br /&gt;
	led.toggle()&lt;br /&gt;
	pyb.delay(500)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This is called a &amp;quot;while loop&amp;quot; in Python. It means that a certain bit of code (the one indented by the Tab at the beginning of the line) will be repeated over and over again until a certain condition is not fulfilled anymore. In this case the condition is &amp;lt;code&amp;gt;True&amp;lt;/code&amp;gt; which is the Python-way of saying &amp;quot;this is always correct&amp;quot;. Therefore the loop will repeat forever. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;led.toggle()&amp;lt;/code&amp;gt; is similar to &amp;lt;code&amp;gt;led.on()&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;led.off()&amp;lt;/code&amp;gt;, but instead of always turning the LED on or off it switches between the states. Very useful in our case!&lt;br /&gt;
&lt;br /&gt;
This kind of &amp;quot;infinite loop&amp;quot; is quite useful for a lot of badge code, but often you also want to have some way of leaving the loop. Try this instead:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import pyb&lt;br /&gt;
import buttons&lt;br /&gt;
buttons.init()&lt;br /&gt;
led = pyb.LED(1)&lt;br /&gt;
while not buttons.is_pressed(&amp;quot;BTN_MENU&amp;quot;):&lt;br /&gt;
	led.toggle()&lt;br /&gt;
	pyb.delay(500)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a few new things here: First we have imported a new library called &amp;lt;code&amp;gt;buttons&amp;lt;/code&amp;gt;. This library helps you with all the buttons on the badge. If you want to use buttons in your script you also have to call &amp;lt;code&amp;gt;buttons.init()&amp;lt;/code&amp;gt;, so that's what we're doing in line 3.&lt;br /&gt;
&lt;br /&gt;
We have also changed the &amp;lt;code&amp;gt;while&amp;lt;/code&amp;gt; loop with a new statement &amp;lt;code&amp;gt;not buttons.is_pressed(&amp;quot;BTN_MENU&amp;quot;)&amp;lt;/code&amp;gt;. Like I said above, &amp;lt;code&amp;gt;while&amp;lt;/code&amp;gt; loops will go on forever while its condition is fulfilled. We have now changed the condition to be &amp;quot;while the MENU button is not pressed&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Try running the code. You will again get the same blinking LED, but this time you should be able to stop it by pressing the MENU button. &lt;br /&gt;
&lt;br /&gt;
== 8. Hello Screen ==&lt;br /&gt;
&lt;br /&gt;
Ok, now let's try to write something on the screen. TiLDA comes with a colour screen and we can use a library called UGFX to draw on it. &lt;br /&gt;
&lt;br /&gt;
Create a &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; file and put this in there:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import ugfx&lt;br /&gt;
import buttons&lt;br /&gt;
import pyb&lt;br /&gt;
&lt;br /&gt;
ugfx.init()&lt;br /&gt;
buttons.init()&lt;br /&gt;
ugfx.clear(ugfx.YELLOW)&lt;br /&gt;
&lt;br /&gt;
ugfx.text(5, 5, &amp;quot;Hello World&amp;quot;, ugfx.RED)&lt;br /&gt;
ugfx.fill_circle(100, 100, 30, ugfx.GREEN)&lt;br /&gt;
ugfx.fill_circle(200, 100, 30, ugfx.GREEN)&lt;br /&gt;
ugfx.area(80, 150, 140, 20, ugfx.GREEN)&lt;br /&gt;
ugfx.area(120, 170, 60, 20, ugfx.GREEN)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you run this file you should see a the screen turn yellow with some text and a (very simple) smiley. &lt;br /&gt;
&lt;br /&gt;
If you use the screen you have to make sure you're using &amp;lt;code&amp;gt;ugfx.init()&amp;lt;/code&amp;gt;, otherwise nothing will work. &amp;lt;code&amp;gt;ugfx.clear()&amp;lt;/code&amp;gt; is used to clear the screen (in this case with a special colour) and the next 5 lines are drawing some text and a few basic shapes. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ugfx.text(x, y, text, color)&amp;lt;/code&amp;gt; Prints some text at position (x, y) in a given colour. x and y are coordinates on the screen. x=0 and y=0 means the top-left of the screen and x=320 y=240 is the bottom right corner. Try changing the two numbers and see how the text moves around on the screen.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ugfx.fill_circle(x, y, radius, color)&amp;lt;/code&amp;gt; draws a circle on the screen. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;ugfx.area(x, y, width, height, color)&amp;lt;/code&amp;gt; draws a rectangle on the screen. &lt;br /&gt;
&lt;br /&gt;
There are more basic drawing operations. You can find a list of them here: [[TiLDA MK3/ugfx|uGFX]]&lt;br /&gt;
&lt;br /&gt;
== 10. Your own app ==&lt;br /&gt;
&lt;br /&gt;
Having to have your badge connected to your computer all the time is a bit boring. Let's make it an app, so you can carry it around!&lt;br /&gt;
&lt;br /&gt;
Update your &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; to look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
### Author: Your Name&lt;br /&gt;
### Description: Smiley!&lt;br /&gt;
### Category: Tutorial&lt;br /&gt;
### License: MIT&lt;br /&gt;
### Appname : Smiley&lt;br /&gt;
&lt;br /&gt;
import ugfx&lt;br /&gt;
import buttons&lt;br /&gt;
import pyb&lt;br /&gt;
&lt;br /&gt;
ugfx.init()&lt;br /&gt;
buttons.init()&lt;br /&gt;
ugfx.clear(ugfx.YELLOW)&lt;br /&gt;
&lt;br /&gt;
ugfx.text(5, 5, &amp;quot;Hello World&amp;quot;, ugfx.RED)&lt;br /&gt;
ugfx.fill_circle(100, 100, 30, ugfx.GREEN)&lt;br /&gt;
ugfx.fill_circle(200, 100, 30, ugfx.GREEN)&lt;br /&gt;
ugfx.area(80, 150, 140, 20, ugfx.GREEN)&lt;br /&gt;
ugfx.area(120, 170, 60, 20, ugfx.GREEN)&lt;br /&gt;
&lt;br /&gt;
while not buttons.is_pressed(&amp;quot;BTN_MENU&amp;quot;):&lt;br /&gt;
	pyb.wfi()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The bit at the top is a comment, it's not actually part of the code and python ignores it. It does however help us categorise the app. Make sure you update your name :)&lt;br /&gt;
&lt;br /&gt;
Plug your badge in and open the USB drive. Go into the &amp;quot;apps&amp;quot; folder and create a new folder called &amp;quot;hello_screen&amp;quot;. Copy your newly updated &amp;lt;code&amp;gt;main.py&amp;lt;/code&amp;gt; into there and safely eject the device. If you now press the reset button at the back of your badge it will restart normally. Wait until your name appears and press the MENU button. Go all the way to the bottom right and select &amp;quot;View all&amp;quot;. Now you have to press &amp;quot;right&amp;quot; until you find the &amp;quot;Smiley&amp;quot; app. Select it and press A - You should now see your smiley.&lt;br /&gt;
&lt;br /&gt;
== 11. Publish your app to the app library ==&lt;br /&gt;
&lt;br /&gt;
Now that you have your own smiley app, why not share it with others? &lt;br /&gt;
&lt;br /&gt;
Find your main.py and create an archive of it. Most operating systems have something build in for that purpose. In OSX you can right click and select &amp;quot;Compress main.py&amp;quot;, under Windows you can select &amp;quot;???&amp;quot; (someone please fill this) and under Linux you can use &amp;quot;&amp;quot; (again, someone please fill this). You should now have a new file called &amp;lt;code&amp;gt;main.zip&amp;lt;/code&amp;gt; or similar. &lt;br /&gt;
&lt;br /&gt;
Go to http://api.badge.emfcamp.org/ and sign up with your email address and a password.  In the top right there's a field called &amp;quot;Create New App&amp;quot;  - Put &amp;quot;Smiley&amp;quot; into the field next to it and then click &amp;quot;Create&amp;quot;. On the next screen click the &amp;quot;Choose File&amp;quot; button and select your &amp;lt;code&amp;gt;main.zip&amp;lt;/code&amp;gt;. Now press &amp;quot;Upload&amp;quot; - and you're done!&lt;br /&gt;
&lt;br /&gt;
You now have to wait until we have reviewed your app to make sure it's not doing something weird and then we'll hit the &amp;quot;publish&amp;quot; button and everyone on the camp site will be able to download your newly created app to their badge. If we're not quick enough, feel free to come to the badge tent and we'll hurry the review up ;)&lt;br /&gt;
&lt;br /&gt;
= Alternative ways to work with TiLDA = &lt;br /&gt;
&lt;br /&gt;
All of the python code which runs on the badge can be modified on the mass storage device, and new apps can be added this way too. Be careful when using text editors to modify files on the device, if the mass storage is not 'safely removed' before removal, corruption of the file being edited can occur.&lt;br /&gt;
&lt;br /&gt;
When writing your own code, it is advised edit code on your computer, then copy it across to the badge, wait for the red 'writing' LED to go out, reset it, and run.&lt;br /&gt;
This way you don't need to worry about safely removing the badge each time.&lt;br /&gt;
&lt;br /&gt;
To interactively run code on the badge, a python REPL can be accessed via the virtual serial port. Once you have found the serial port, use your favourite serial terminal to connect to the badge. Since the badge will be running the main software, press Ctrl+c to stop it, and the badge will display '&amp;gt;&amp;gt;&amp;gt;' to indicate it is ready to receive commands.&lt;br /&gt;
&lt;br /&gt;
The badge runs micropython, and as a result does not contain everything you may expect from full python. See the micropython docs in the lniks below for more information.&lt;br /&gt;
The badge has additional APIs, in particular for the LCD, Wifi and IMU, which are also listed below.&lt;/div&gt;</summary>
		<author><name>Marekventur</name></author>
	</entry>
</feed>