Use enum initializers not enumval= where possible

This commit is contained in:
Michal Moskal
2016-04-01 09:17:41 -07:00
parent a3b2682cc1
commit 68143500da
3 changed files with 105 additions and 141 deletions

View File

@ -1,8 +1,8 @@
enum DisplayMode {
//% enumval=0 block="black and white"
BackAndWhite,
//% enumval=1 block="greyscale"
Greyscale,
//% block="black and white"
BackAndWhite = 0,
//% block="greyscale"
Greyscale = 1,
}
//% color=3 weight=35