Bläddra i källkod

Add build command to README

I always forget what the PICO_BOARD bit needs to be, so just write it
down.
Brian Starkey 6 månader sedan
förälder
incheckning
a180750152
1 ändrade filer med 13 tillägg och 1 borttagningar
  1. 13
    1
      README.md

+ 13
- 1
README.md Visa fil

10
 
10
 
11
 There's an example project using picowota at https://github.com/usedbytes/picowota_blink
11
 There's an example project using picowota at https://github.com/usedbytes/picowota_blink
12
 
12
 
13
+The simplest way to build `picowota` by itself is:
14
+
15
+```
16
+mkdir build
17
+cd build
18
+export PICOWOTA_WIFI_SSID=picowota
19
+export PICOWOTA_WIFI_PASS=password
20
+export PICOWOTA_WIFI_AP=1
21
+cmake -DPICO_BOARD=pico_w -DPICO_SDK_PATH=/your/path/to/pico-sdk ../
22
+make
23
+```
24
+
13
 ## Using in your project
25
 ## Using in your project
14
 
26
 
15
 First add `picowota` as a submodule to your project:
27
 First add `picowota` as a submodule to your project:
40
 Then, you can either build just your standalone app binary (suitable for
52
 Then, you can either build just your standalone app binary (suitable for
41
 updating via `picowota` when it's already on the Pico), or a combined binary
53
 updating via `picowota` when it's already on the Pico), or a combined binary
42
 which contains the bootloader and the app (suitable for flashing the first
54
 which contains the bootloader and the app (suitable for flashing the first
43
-time): 
55
+time):
44
 
56
 
45
 ```
57
 ```
46
 picowota_build_standalone(my_executable_name)
58
 picowota_build_standalone(my_executable_name)

Laddar…
Avbryt
Spara