Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
adc
at
beacon_spam
blink
blink_timer
flash
helloworld
pwm
sniffer_mac
Makefile.mk
README.md
build.sh

README.md

W600 Example

Basic Example

  • at : just compile the sdk, do nothing;
  • adc : use internal adc for temperature measurement;
  • blink : blink led using a task and os timer delay;
  • blink_timer : blink led using a hardware timer;
  • flash : read flash and write flash test.
  • hello world: printf helloworld using a task and os timer delay;
  • pwm : breathing led using a hardware pwm;

Advance Example

  • beacon_spam : create multiple custom WiFi access points;
  • sniffer_mac : get the MAC address and RSSI, and even the SSID which sent by nearby devices;

Compile

Open the Cygwin console and enter the ./build.sh PRJ_NAME cmd

wch@wch-pc /cygdrive/d/Project/sdk/example
$ ./build.sh at

start...

Or download directly to the w600 device

wch@wch-pc /cygdrive/d/Project/sdk/example
$ ./build.sh at flash COM3

start...

Note:

  1. The default firmware generation path is in the sdk/bin/PRJ_NAME/ folder;
  2. Note that PRJ_NAME should not be entered with "/" after the folder, otherwise the compilation will fail.
You can’t perform that action at this time.