Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
ofi:vscode-ev3 [2022/07/08 15:12] Ivo Blöchliger |
ofi:vscode-ev3 [2023/01/20 21:11] Olaf Schnürer |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Native Python auf EV3 mit VSCode ====== | ====== Native Python auf EV3 mit VSCode ====== | ||
* https:// | * https:// | ||
- | * SSH: user robot, | + | * SSH: user robot, |
* hostnamectl set-hostname LEGO12 | * hostnamectl set-hostname LEGO12 | ||
+ | * WiFi-Daten in var/ | ||
* https:// | * https:// | ||
* Use '' | * Use '' | ||
+ | |||
+ | |||
+ | Way better than stuff below (also, you could take the image and then zero is out while mounted as loopback, much quicker!) | ||
+ | <code ruby> | ||
+ | def cmd(c) | ||
+ | puts c | ||
+ | r = `#{c}` | ||
+ | return r | ||
+ | end | ||
+ | |||
+ | raise " | ||
+ | hostname = $ARGV[0] | ||
+ | |||
+ | img = " | ||
+ | cmd(" | ||
+ | dev = cmd(" | ||
+ | |||
+ | p2 = dev+" | ||
+ | cmd(" | ||
+ | cmd(" | ||
+ | puts " | ||
+ | cmd(" | ||
+ | cmd(" | ||
+ | |||
+ | cmd(" | ||
+ | puts "Image is ready. Write it with" | ||
+ | puts "dd if=#{img} of=/ | ||
+ | |||
+ | </ | ||
+ | |||
<code bash> | <code bash> |