Laurens Valk
bfe80edff6
ev3/snippets/bluetooth_pc: run client as python3
...
Even though our main example will have the PC as the server, make it possible to use it as client as well.
Now, it works just like the EV3s. The only difference is that
you must enter the full address instead of the name if the EV3 is the server you are connecting to.
2020-05-07 11:56:36 +02:00
Laurens Valk
db10b75808
ev3/snippets/bluetooth_pc: run server as python3
...
This removes the MicroPython struct and socket specifics and replaces them with Python3 counterparts.
Also a few changes are made to deal with strings, which on MicroPython are just bytes.
Now, the server works on Python3 and client EV3s can connect to it.
2020-05-07 11:56:36 +02:00
Laurens Valk
9b3908090d
ev3/snippets/bluetooth_pc: run MicroPython Unix
...
This is a copy of the EV3 server example with minimal changes
to make it run on a PC, using the unmodified MicroPython Unix port.
This is done by skipping the name resolver. The downside is that you
must specify the EV3 server address instead of its name. However,
since in this example the PC will be the server, this is not really a
problem. The EV3 clients will just connect to the PC by its name.
2020-05-07 11:56:36 +02:00
Laurens Valk
5d943a609d
ev3/snippets/bluetooth_pc: copy pybricks bluetooth
...
This copies the Pybricks MicroPython bluetooth implementation. As-is, it only runs in Pybricks MicroPython.
The next commits will adapt it to work with MicroPython and then Python3. We only need the Python3 end result, but this staged approach makes it easy to keep track of what will be changed.
2020-05-07 11:56:36 +02:00
Laurens Valk
21eac3abda
ev3/snippets/bluetooth_pc: hello world launch
...
This creates an empty hello world style Python3 example
2020-05-07 11:56:36 +02:00
Laurens Valk
8f0e674b58
workspaces: generate
2020-04-28 15:18:40 +02:00
Laurens Valk
50c96cadb3
ev3: update workspaces
2020-04-16 15:07:42 +02:00
Laurens Valk
52ee3b772b
snippets/ev3: split datalog into separate projects
...
Use the standard style instead of having them as launch configurations.
2020-04-16 15:07:22 +02:00
Laurens Valk
79e1064ae9
snippets/ev3/datalog: fix extension kwarg
...
Make the example match the doc.
2020-04-10 13:07:47 +02:00
Laurens Valk
0ef1a9f956
snippets/ev3: update workspaces
...
run ./update_workspaces.py
2020-04-01 13:31:26 +02:00
David Lechner
28e3bc8f0c
Fix typo too/to
2020-03-26 16:22:19 -05:00
David Lechner
d59bf03daf
snippets/ev3: Split screen into separate projects
...
These will be included as examples in the API docs
2020-03-26 13:44:22 +01:00
Laurens Valk
6a57abbff6
snippets/ev3/bluetooth: update mailbox name
...
In examples, it is helpful to give unrelated things different names.
2020-03-25 12:59:16 +01:00
Laurens Valk
af926c5f19
snippets/ev3/buttons_quickstart: initial project
...
This is a demo of:
- multi-file project
- using images
- creating a "menu"
This program can be started away from the competition table.
Then a mission can be quickly activated by pressing one of the buttons.
2020-03-20 13:58:09 +01:00
Laurens Valk
3bb19daadf
snippets/ev3: add getting started snippet
...
Include it from here instead of having the code directly in the docs.
2020-03-05 15:14:02 +01:00
Laurens Valk
106c8cf600
snippets/ev3: remove print from imports
...
We use the default print in the latest release, so importing is not required.
2020-03-04 10:24:53 +01:00
Laurens Valk
64c29d49ce
update_workspaces: generalize generator
...
Make it useful for upcoming EV3 folders as well.
2020-03-03 11:48:26 +01:00
Laurens Valk
4fca9387f3
snippets/ev3: auto generate workspace
2020-03-03 11:32:34 +01:00
Laurens Valk
297aa88459
snippets/ev3/ev3devsensor: initial examples
2020-02-25 10:15:59 +01:00
Laurens Valk
561315a105
snippets/ev3/datalog: update arguments
2020-02-14 11:46:33 +01:00
Laurens Valk
05ce47e739
snippets/ev3/datalog: add main and extra example
2020-02-14 11:37:13 +01:00
David Lechner
7bc9ef5acf
snippets/ev3/bluetooth_client/client: use name instead of address
...
We no longer have to use the Bluetooth address.
2020-02-12 15:50:21 -06:00
Laurens Valk
a18ba6499c
snippets/ev3/vernier: temperature example
2020-02-12 12:47:55 +01:00
David Lechner
5ffedc9d51
ev3dev/bluetooth: update examples for api changes
2020-02-11 12:50:52 -06:00
David Lechner
fcc8af3381
snippets/ev3/screen: update for API changes
2020-02-11 11:21:04 -06:00
David Lechner
55912786eb
Add bluetooth example projects
2020-02-03 16:32:30 -06:00
Laurens Valk
8d9bb6e11a
snippets/ev3/i2c_extra: update i2c
...
Reflect that we read one byte by default.
Also allow a second way to send one byte, by specifying a register with no data.
2020-02-03 10:34:42 +01:00
David Lechner
f7f1ce5768
resources renamed to media.ev3dev
2020-01-14 10:35:09 -06:00
David Lechner
b7a111a78f
snippets/ev3/screen_extra: fix flake8 error
2020-01-13 20:09:00 -06:00
David Lechner
fe3a7ae636
snippets/ev3/speaker_basics: add Danish example
2020-01-13 20:03:51 -06:00
David Lechner
37ca78217f
snippets/ev3/screen_basics: finish show_image todo
...
ev3.screen.show_image is implemented now
2020-01-13 18:50:22 -06:00
David Lechner
05b69c1684
snippits/ev3/speaker_basics: new project for basic speaker ops
2020-01-12 14:18:11 -06:00
David Lechner
80c99a0781
snippets/ev3/screen: add examples
...
New examples for ev3.screen / Image class API
sprite.png is derived from https://publicdomainvectors.org/en/free-clipart/Walking-man-figure/66314.html
2020-01-10 20:32:52 -06:00
Laurens Valk
d646e0fc49
*: use Ports from parameters module, not hubs
...
This follows a recent API update.
2020-01-10 16:10:33 +01:00
Laurens Valk
6e893e2301
*/ev3: rename customdevices to iodevices
...
This follows the API update.
2020-01-01 16:40:39 +01:00
Laurens Valk
7fc9d68345
snippets/ev3/i2c_extra: add snippet
2019-12-10 15:24:20 +01:00
Laurens Valk
42eb870c74
snippets/ev3/i2c_basics: add snippet
2019-12-10 15:18:40 +01:00
Laurens Valk
c017248f43
snippets/ev3/uart_basics: add snippet
2019-12-10 13:22:19 +01:00
Laurens Valk
84c1d38d46
test/ev3/buttons: initial test
...
This tests all button functionality.
2019-12-10 13:21:43 +01:00
Laurens Valk
c322ffdc17
snippets/ev3/buttons: initial example
2019-12-09 16:16:01 +01:00
Laurens Valk
17b583cd23
snippets/ev3/light_color: initial example
2019-12-09 16:15:55 +01:00