TiLDA MK4/Run Code: Difference between revisions
Jump to navigation
Jump to search
Marekventur (talk | contribs) (Created page with " == Through the REPL == * Todo: Please write how to do that on different operating systems * todo: how to use a REPL == Use the "mass storage" app == * easy to do * make sure...") |
|||
(7 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
* Todo: Please write how to do that on different operating systems | * Todo: Please write how to do that on different operating systems | ||
* todo: how to use a REPL | * todo: how to use a REPL | ||
'''Important''': once connected to the serial port, you'll only see output the badge sends (usually none). Hit Ctrl+C to exit from the current process and get back the REPL. | |||
=== Windows/WSL === | |||
==== Identify serial device ==== | |||
The serial device should be a COM port that only shows when you plug the badge in, e.g. COM4: | |||
# Open Computer Management (compmgmt.msc) | |||
# Navigate to Device Manager | |||
# Expand Ports (COM & LPT) | |||
Alternatively in PowerShell: | |||
Get-WMIObject Win32_SerialPort | select DeviceID,Description | |||
==== Connect to identified device ==== | |||
Open PuTTY, enter the COM port found above, e.g. COM4, select Serial, and click Open. | |||
Alternatively in WSL: | |||
sudo screen /dev/ttyS{n} | |||
where {n} is the numeric part of the COM port (e.g. /dev/ttyS4 for COM4). Use Ctrl+A, D to disconnect. | |||
== Use the "mass storage" app == | == Use the "mass storage" app == | ||
* Only works on OSX at present (2nd Sept 2018) | |||
* easy to do | * easy to do | ||
* make sure to safely eject every time | * make sure to safely eject every time | ||
Line 9: | Line 33: | ||
* hard to debug errors | * hard to debug errors | ||
* todo: add more information | * todo: add more information | ||
== Use Mk4-Apps tilda_tools == | == Use Mk4-Apps tilda_tools == | ||
* Probably most convenient, but a bit more involved: | * Probably most convenient, but a bit more involved: | ||
* You can use "./tilda_tools run <file.py>" to run code without copying anything, but if you want to make sure you have all your libraries updated use "./tilda_tools app my_app" instead. | |||
* https://badge.emfcamp.org/wiki/TiLDA_MK4/tilda-tools | * https://badge.emfcamp.org/wiki/TiLDA_MK4/tilda-tools |
Latest revision as of 21:59, 18 September 2018
Through the REPL
- Todo: Please write how to do that on different operating systems
- todo: how to use a REPL
Important: once connected to the serial port, you'll only see output the badge sends (usually none). Hit Ctrl+C to exit from the current process and get back the REPL.
Windows/WSL
Identify serial device
The serial device should be a COM port that only shows when you plug the badge in, e.g. COM4:
- Open Computer Management (compmgmt.msc)
- Navigate to Device Manager
- Expand Ports (COM & LPT)
Alternatively in PowerShell:
Get-WMIObject Win32_SerialPort | select DeviceID,Description
Connect to identified device
Open PuTTY, enter the COM port found above, e.g. COM4, select Serial, and click Open.
Alternatively in WSL:
sudo screen /dev/ttyS{n}
where {n} is the numeric part of the COM port (e.g. /dev/ttyS4 for COM4). Use Ctrl+A, D to disconnect.
Use the "mass storage" app
- Only works on OSX at present (2nd Sept 2018)
- easy to do
- make sure to safely eject every time
- has a tendency to corrupt the filesystem - link to reset instructions
- hard to debug errors
- todo: add more information
Use Mk4-Apps tilda_tools
- Probably most convenient, but a bit more involved:
- You can use "./tilda_tools run <file.py>" to run code without copying anything, but if you want to make sure you have all your libraries updated use "./tilda_tools app my_app" instead.
- https://badge.emfcamp.org/wiki/TiLDA_MK4/tilda-tools