Adding baud rate 31250 (#383)

This commit is contained in:
Abhijith Chatra 2017-04-17 10:49:40 -07:00 committed by Peli de Halleux
parent 80d260d33f
commit c4a9c67be6
3 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,7 @@
"BaudRate.BaudRate28800|block": "28800", "BaudRate.BaudRate28800|block": "28800",
"BaudRate.BaudRate300|block": "300", "BaudRate.BaudRate300|block": "300",
"BaudRate.BaudRate38400|block": "38400", "BaudRate.BaudRate38400|block": "38400",
"BaudRate.BaudRate31250|block": "31250",
"BaudRate.BaudRate4800|block": "4800", "BaudRate.BaudRate4800|block": "4800",
"BaudRate.BaudRate57600|block": "57600", "BaudRate.BaudRate57600|block": "57600",
"BaudRate.BaudRate9600|block": "9600", "BaudRate.BaudRate9600|block": "9600",

View File

@ -447,6 +447,8 @@ declare namespace led {
BaudRate57600 = 57600, BaudRate57600 = 57600,
//% block=38400 //% block=38400
BaudRate38400 = 38400, BaudRate38400 = 38400,
//% block=31250
BaudRate31250 = 31250,
//% block=28800 //% block=28800
BaudRate28800 = 28800, BaudRate28800 = 28800,
//% block=19200 //% block=19200

View File

@ -19,6 +19,8 @@ enum BaudRate {
BaudRate57600 = 57600, BaudRate57600 = 57600,
//% block=38400 //% block=38400
BaudRate38400 = 38400, BaudRate38400 = 38400,
//% block=31250
BaudRate31250 = 31250,
//% block=28800 //% block=28800
BaudRate28800 = 28800, BaudRate28800 = 28800,
//% block=19200 //% block=19200