Search Results

AmebaD

…NORA-W36 (by u-blox) SI8720DFSTS (by SME) Datalogger (by Kevin’s Lab) AMB21 MCU Part Number: RTL8722DM 32-bit KM4 (Arm Cortex-M33 compatible) 32-bit KM0 (Arm Cortex-M23 compatible) Memory 512KB SRAM + 4MB…

Read More »

BLECharacteristic Class

…characteristic data buffer as a String object. BLECharacteristic::readData8 Read the characteristic data buffer as an unsigned 8-bit integer. BLECharacteristic::readData16 Read the characteristic data buffer as an unsigned 16-bit integer. BLECharacteristic::readData32…

Read More »

BLESecurity Class

…use the class function. BLESecurity::setIOCapability Description Set BLE device input and output capabilities. Syntax void setIOCap(uint8_t ioCap); Parameters ioCap: desired device input output capabilities.Valid values:– GAP_IO_CAP_NO_INPUT_NO_OUTPUT– GAP_IO_CAP_DISPLAY_ONLY– GAP_IO_CAP_DISPLAY_YES_NO– GAP_IO_CAP_KEYBOARD_ONLY– GAP_IO_CAP_KEYBOARD_DISPLAYDefault…

Read More »

BLESecurity Class

…use the class function. BLESecurity::setIOCapability Description Set BLE device input and output capabilities. Syntax void setIOCap(uint8_t ioCap); Parameters ioCap: desired device input output capabilities.Valid values:– GAP_IO_CAP_NO_INPUT_NO_OUTPUT– GAP_IO_CAP_DISPLAY_ONLY– GAP_IO_CAP_DISPLAY_YES_NO– GAP_IO_CAP_KEYBOARD_ONLY– GAP_IO_CAP_KEYBOARD_DISPLAYDefault…

Read More »

BLECharacteristic Class

…characteristic data buffer as a String object. BLECharacteristic::readData8 Read the characteristic data buffer as an unsigned 8-bit integer. BLECharacteristic::readData16 Read the characteristic data buffer as an unsigned 16-bit integer. BLECharacteristic::readData32…

Read More »

BLERemoteCharacteristic Class

…object. BLERemoteCharacteristic::readData8 Read the characteristic data buffer as an unsigned 8-bit integer. BLERemoteCharacteristic::readData16 Read the characteristic data buffer as an unsigned 16-bit integer. BLERemoteCharacteristic::readData32 Read the characteristic data buffer as…

Read More »

BLERemoteDescriptor Class

…data to the descriptor as an unsigned 8-bit integer. BLERemoteDescriptor::writeData16 Write data to the descriptor as an unsigned 16-bit integer. BLERemoteDescriptor::writeData32 Write data to the descriptor as an unsigned 32-bit

Read More »

BLERemoteCharacteristic Class

…object. BLERemoteCharacteristic::readData8 Read the characteristic data buffer as an unsigned 8-bit integer. BLERemoteCharacteristic::readData16 Read the characteristic data buffer as an unsigned 16-bit integer. BLERemoteCharacteristic::readData32 Read the characteristic data buffer as…

Read More »

BLERemoteDescriptor Class

…data to the descriptor as an unsigned 8-bit integer. BLERemoteDescriptor::writeData16 Write data to the descriptor as an unsigned 16-bit integer. BLERemoteDescriptor::writeData32 Write data to the descriptor as an unsigned 32-bit

Read More »

SPISettings Class

…configure SPI parameters — clock speed, bit order and data mode to the preferred default value. Syntax SPISettings(uint32_t clock, BitOrder bitOrder, uint8_t dataMode); Parameters clock: SPI clock speed. (Default: 4000000(Hz)).bitOrder:…

Read More »

SPISettings Class

…configure SPI parameters — clock speed, bit order and data mode to the preferred default value. Syntax SPISettings(uint32_t clock, BitOrder bitOrder, uint8_t dataMode); Parameters clock: SPI clock speed. (Default: 4000000(Hz))bitOrder:…

Read More »

Boards

…Ameba RTL8722CSM Board Ameba RTL8722DM MINI Board Designed by Partners BW16 (by Ai-Thinker) WE310F5 (by Telit) Ameba RTL8722DM Board (AMB 21) CPU 32-bit Arm®Cortex®-M4, up to 200MHz 32-bit Arm®Cortex®-M0, up…

Read More »

WiFiClass Class

…Parameters bssid: an array to store bssid (8-bit unsigned integer). Returns This function returns the uint8_t array storing BSSID with length WL_MAC_ADDR_LENGTH (6 bit). Example Code Example: ConnectWithWPA (https://github.com/ambiot/ambd_arduino/blob/dev/Arduino_package/hardware/libraries/WiFi/examples/ConnectWithWiFi/ConnectWithWPA/ConnectWithWPA.ino) Notes…

Read More »

iBeacon Class

…UUID: Provide a pointer to a 16 elements uint8_t array containing current UUID. Returns NA Example Code NA Notes and Warnings UUID is a 128-bit number used to uniquely identify…

Read More »

iBeacon Class

…UUID: Provide a pointer to a 16 elements uint8_t array containing current UUID. Returns NA Example Code NA Notes and Warnings UUID is a 128-bit number used to uniquely identify…

Read More »

SPISettings Class

…configure SPI parameters — clock speed, bit order and data model to the preferred default value. Syntax SPISettings(uint32_t clock, BitOrder bitOrder, uint8_t dataMode); Parameters clock: SPI clock speed, default is…

Read More »

WiFiClass Class

…array of to store MAC address (in 8-bit unsigned integer). Returns This function returns uint8_t array containing the macAddress with length WL_MAC_ADDR_LENGTH (6 bit). Example Code Example: ConnectWithWPA (https://github.com/ambiot/ambd_arduino/blob/dev/Arduino_package/hardware/libraries/WiFi/examples/ConnectWithWiFi/ConnectWithWPA/ConnectWithWPA.ino) Notes…

Read More »

PlaybackWav Class

…for playback. PlaybackWav::closeFile Close a previously opened audio file. PlaybackWav::fileOpened Check if a .wav file is already opened. PlaybackWav::getSampleRate Get the sample rate of the .wav file. PlaybackWav::getChannelCount Get the…

Read More »

WS2812B Class

…LEDs that need to be lighted up. Returns NA Example Code Example: WS2812B_Basics (https://github.com/ambiot/ambd_arduino/blob/dev/Arduino_package/hardware/libraries/WS2812B/examples/WS2812B_Basics/WS2812B_Basics.ino) Notes and Warnings Only SPI MOSI pin is valid for driving WS2812B LEDs. “WS2812B.h” must be…

Read More »

SPI – Print image and text on LCD screen

…16-bitILI9341在繪圖時,使用的顏色代碼是RGB 16-bit, 與一般常見的RBG 24-bit差異是Red使用5 bit (原本的8 bits向右移3bits), Green使用6 bits(原本的8 bits向右移2bits), Blue使用5 bit(原本的8 bits向右移3bits)舉例來說,天空藍的RGB 24 bit為 0x87CEFF,表示成二進位為:Red: 0x87 = B10000111 Green: 0xCE = B11001110 Blue: 0xFF = B11111111 轉成RGB 16 bit為…

Read More »

IRDevice Class

…cmd, uint32_t timeout); Parameters adr: 8-bit NEC address data to be transmit.cmd: 8-bit NEC command data to be transmit.timeout: time duration (in ms) to wait for an incoming transmission. Returns…

Read More »

SPI – Print Image and Text On LCD Screen

…要注意的是,這款shield預設已打上背光,並且pin 8不是背光的pin,所以不需接上背光的pin。另外它接到5V,而不是3.3V。 打開範例程式, “File” -> “Examples” -> “AmebaSPI” -> “LCD_Screen_ILI9341_TFT” 編譯後上傳到Ameba,完成後按下Reset按鈕。螢幕上會執行一些基本測試,像是刷新螢幕為不同顏色,畫直線與橫線,畫斜線,畫圓圈,畫正方形,顯示不同大小的文字,最後不停地旋轉螢幕並印出文字 程式碼說明 RGB 16-bit ILI9341在繪圖時,使用的顏色代碼是RGB 16-bit, 與一般常見的RBG 24-bit差異是Red使用5 bit (原本的8 bits向右移3bits), Green使用6 bits(原本的8 bits向右移2bits), Blue使用5 bit(原本的8 bits向右移3bits)舉例來說,天空藍的RGB 24 bit為0x87CEFF,表示成二進位為:Red: 0x87…

Read More »

RecordWav Class

…Notes and Warnings “RecordWav.h” must be included to use the class function. RecordWav::setBitDepth Description Set the recording bit depth of each sample in the .wav file. Syntax void setBitDepth(uint16_t bitDepth);…

Read More »

AmebaZ2

…SoC Hardware SSL Engine Root Trust Secure Boot BLE4.2 Support AWS IoT ExpressLink WE10 (by Celium Devices)   Partner Designed   MCU Part Number: RTL8710CF 32-bit KM4 (Arm Cortex-M33 compatible) 32-bit KM0…

Read More »

SoftwareSerial Class

…28800, 31250, 38400, 57600, and 115200 bauds.data_bits: number of data bits, 8 bits (default) or 7 bits.stop_bits: number of stop bits, 1 bit (default), 1.5 bits or 2 bits.flowctrl: flow…

Read More »

SPI – Print Image and Text On LCD Screen

…RGB 16-bit ILI9341在繪圖時,使用的顏色代碼是RGB 16-bit, 與一般常見的RBG 24-bit差異是Red使用5 bit (原本的8 bits向右移3bits), Green使用6 bits(原本的8 bits向右移2bits), Blue使用5 bit(原本的8 bits向右移3bits)舉例來說,天空藍的RGB 24 bit為0x87CEFF,表示成二進位為:Red: 0x87 = B10000111 Green: 0xCE = B11001110 Blue: 0xFF = B11111111 轉成RGB 16…

Read More »

BLEHIDDevice Class

…Syntax void setHidInfo (uint16_t bcd, uint8_t country, uint8_t flags); Parameters bcd: 16-bit unsigned integer representing version number of base USB HID Specification implemented by HID Devicecountry: 8-bit integer identifying country…

Read More »

PMUClass Class

…“2“: BIT(1): wakepin1– “4“: BIT(2): wakepin2– “8“: BIT(3): wakepin3– “0”: NA Example Code Example: DeepSleep_DHT_Eink_Example (https://github.com/ambiot/ambd_arduino/blob/dev/Arduino_package/hardware/libraries/PowerSave/examples/DeepSleep_DHT_Eink_Example/DeepSleep_DHT_Eink_Example.ino) Notes and Warnings “PMUClass.h” must be included to use the class function. PMUClass::AONWakeClear Description…

Read More »

AudioCodec Class

…receiving. Syntax void setBitDepth(uint8_t bitDepth); Parameters bitDepth: Number of bits per sample. (Default: 16 bits).Supported values:– 8 bits– 16 bits– 24 bits Returns NA Example Code NA Notes and Warnings…

Read More »

VideoStreamOverlay Class

…level of red color expressed as an 8-bit unsigned integer from to 255.green: Intensity level of green color expressed as an 8-bit unsigned integer from to 255.blue: Intensity level of…

Read More »

AmebaILI9341 Class

…data); Parameters data: SPI data in 8-bit. Returns NA Example Code NA Notes and Warnings Only use this method to write 1 byte at a time. “AmebaILI9341.h” must be included…

Read More »

AmebaPro2

…HUB8735 Ultra(by ideas Hatch, III) AMB82 MINI MCU Part Number: RTL8735B 32-bit Arm v8M, up to 500MHz Memory 768KB ROM 512KB RAM 16MB Flash Supports MCM embedded DDR2/DDR3L memory up…

Read More »

IR – Infra-red receiver and emitter

…接著會送資料,依序將資料以byte為單位送出,送的順序為LSB(Least Significant Bit) 至MSB(Most Significant Bit)。其中bit 1的表示方式,先打出長度560us的PWM訊號,再停止1.69ms。而bit 0的表示方式,打出長度560us的PWM訊號,再停止560us。可以看到0跟1的表示方式差別只在於後面的停止長度。 資料送完之後,送一個bit 1當作Stop bit,然後不再送訊號。 接收端的部份,因為已經經過解調器,所以原本是PWM訊號的地方,都被轉成一般的數位輸入:而原本不是PWM訊號的地方,都被置於3.3V ( or 5V )的地方。 紅外線接收範例 Ameba在實作上,使用了一根GPIO Interrupt與硬體的Timer 4。範例請打開 “File” -> “Examples” -> “AmebaIRSendRecv” -> “recv”在接收器的部份,這個範例裡使用Grove Infrared Receiver,如果你使用其它的紅外線接收器也類似。一般只會用到三根Pin:一根VCC(接3.3V),一根GND,一根RX。範例裡RX接到D3 (具有GPIO…

Read More »

VideoStream Class

…VIDEO_H264, VIDEO_JPEG)snapshot: Enable or disable snapshot function.w: Width in pixels.h: Height in pixels. Returns NA Example Code VideoOnly (https://github.com/ambiot/ambpro2_arduino/blob/dev/Arduino_package/hardware/libraries/Multimedia/examples/StreamRTSP/VideoOnly/VideoOnly.ino) Notes and Warnings “VideoStream.h” must be included to use the class…

Read More »

BLEHIDDevice Class

…HID Specification implemented by HID Devicecountry: 8-bit integer identifying country HID Device hardware is localized for. Most hardware is not localized (value 0x00).flags: Bit flags indicating remote-wake capability and advertising…

Read More »

AmebaILI9341 Class

…y, int16_t w, int16_t h, const unsigned short *color); Parameters x: leftmost coordinate of the Bitmap imagey: top coordinate of the Bitmap imagew: width of the Bitmap imageh: height of…

Read More »

UART – Set Callback Function for UART Communications

…Plus AMB25 打開示例”File” -> “Examples” -> “AmebaSoftwareSerial” -> “SoftwareSerial_Irq_Callback” 上傳代碼並在上傳完成後按下Ameba上的reset按鈕。 接下來,使用串口終端程序,如TeraTerm或PuTTY,打開一個串口,並根據設置對其進行配置。確保串行端口號對應於USB到TTL適配器。 Port: <適配器的端口號> Speed: 38400 Data: 8 bit Parity: none Stop bits: 1 bit Flow control: none 當串行口打開後,在串口終端中輸入並按回車鍵,就會看到相應的輸出。 程式碼說明 mySerial.setAvailableCallback…

Read More »

BLEUUID Class

…UUID will be 32 bits / 4 bytes long.A 32-character UUID will be 128 bits / 16 bytes long.“BLEUUID.h” must be included to use the class function. 解決方案 IoT SoC…

Read More »

BLEUUID Class

…UUID will be 32 bits / 4 bytes long.A 32-character UUID will be 128 bits / 16 bytes long.“BLEUUID.h” must be included to use the class function. 解決方案 IoT SoC…

Read More »

bw16-intro

…Wi-Fi 和 BLE 5.0 協議功能,用於開發許多智能裝置,像是智能玩具小物、紅白機再造、語音機器人及環境應用大數據偵測等,激發思考及創作能力,進而提升AI演算法、程式語言、感測器原理、為處理系統及網路通訊能力,初學者可透過課堂教學及Ameba IoT BW16教學指南,動手創造各式各樣的專案,落實學用合一的目標。 Ameba BW16開發套件是基於RTL8720DN 晶片開發的Wi-Fi雙頻2.4GHz/5GHz及低耗電BLE 5.0模組,BW16模組由B&T生產,擁有輕巧精實的50.4 x 25.4mm,整合了32-bit KM4 (相容Arm Cortex-M33) 高性能 MCU,和32-bit KM0 (相容Arm Cortex-M23) 低耗電MCU、WLAN(802.11 a / b / g / n)MAC、藍牙(BLE 5.0),基頻和RF射頻,提供了可配置的硬體I/O介面,可用於不同週邊設備的控制。…

Read More »

Standard SDK: Release History

…compilation guide Version 1.0.0 – 2021/10/12 Hardware information: – CPU. 32-bit KM4 (Arm Cortex-M33 compatible) and 32-bit KM0 (Arm Cortex-M23 compatible) – MEMORY. 512KB SRAM + 4MB PSRAM Feature: –…

Read More »

TwoWire Class

…The data in 8-bit is to be transmitted from I2C master to slave.quantity: The number of data in 8-bit to be transmitted. Returns This function size_t write (uint8_t data); returns…

Read More »

IoT Control SoC / MCU

…& Boards Ameba D RTL8722DM/RTL8721DM/RTL8720DN – 32-bit KM4 (Arm Cortex-M33 compatible) – 32-bit KM0 (Arm Cortex-M23 compatible) – Integrated with 802.11a/n Wi-Fi & BLE5.0 – Support Trustzone & Secure boot…

Read More »

Wiring OS API

…are not in idle state.stack_size: The stack_size is used as memory heap only for this task. Returns This function returns the thread ID in 32-bit which is used in thread…

Read More »

AmebaPro

…Number: RTL8715AD 32-bit Arm v8M, up to 300MHz 32-bit Arm®Cortex®-M0, up to 4MHz Memory 512KB RAM + 32MB LPDDR Key Features Integrated 802.11ac/n Wi-Fi SoC Trustzone-M Security Hardware SSL Engine…

Read More »

Ameba1

…Part Number: RTL8195AM 32-bit Arm®Cortex®-M3, up to 166MHz Memory 1MB ROM, 2MB SDRAM and 512KB SRAM Key Features Integrated with 802.11 b/g/n 1×1 Wi-Fi NFC Tag with Read/Write Function 10/100…

Read More »

TwoWire Class

…write(const uint8_t *data, size_t quantity); Parameters data: The data in 8-bit is to be transmitted from I2C master to slave.quantity: The number of data in 8-bit to be transmitted. Returns…

Read More »

BLEDevice Class

…desired device appearance expressed as a 16-bit unsigned integer. Returns NA Example Code NA Notes and Warnings Refer to Bluetooth SIG assigned device appearances at https://www.bluetooth.com/specifications/gatt/characteristics/.“BLEDevice.h” must be included to…

Read More »

AmebaILI9341 Class

…a single byte data Returns NA Example Code NA Notes and Warnings Only use this method to write 1 byte at a time. “AmebaILI9341.h” must be included to use the…

Read More »

SoftwareSerial Class

…baud ratedata_bits: number of data bits, 8 bits (default) or 7 bitsstop_bits: number of stop bits, 1 bit (default), 1.5 bits or 2 bitsflowctrl: flow control pinrtsPin: request to send…

Read More »

Amazon Kinesis News

…Rekognition Video 和 Apache MxNet、TensorFlow 和 OpenCV 等 ML 框架程式庫整合,充分利用電腦視覺和影片分析功能。Kinesis Video Streams 也支援 WebRTC,WebRTC 是一種開放原始碼專案,允許在網路瀏覽器、行動應用程式及連接的裝置之間透過簡單的 API 即時媒體串流與互動。 Ameba Pro2微控制器 提供更好的影像品質 Ameba Pro2配備了高效能的 32-bit Arm v8M 微控制器(MCU),專為處理高度複雜的影像處理任務而設計,並能夠支援高速運算,這對於攝影機應用來說是至關重要的。此外,它還配備了具有 AI智慧引擎,可以進行快速而高效的影像分析和處理。其內建的影像信號處理器 (ISP) 能夠精確處理來自攝影機的原始影像資料,並進行必要的優化,以確保提供最優質的影像。而其對 H.264…

Read More »

I2C – Display data on LCD screen

…LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Set the LCD I2C address 其中I2C的address是0x27, 後面八個參數代表1個byte裡, 每個bit代表的意義, 其中En為Bit 2, Rw為Bit 1, Rs為 Bit 0, d4為bit 4, 以此類推每款LCD需要設定的內容可能不一樣,…

Read More »

Flash Memory – Use flash memory larger than 4K

…1 範例說明 Flash Memory API預設使用4K大小的memory,對大部份的應用應該已經足夠,但如果遇到需要用到超過4K的情況,可以指定特定的位置與大小來使用。首先打開範例 “File” -> “Examples” -> “AmebaFlashMemory” -> “ReadWriteOneWord” 這個範例裡會宣告Flash起始位置為0xFC000, 大小為0x4000。(預設起始位置為0xFF000,大小為0x1000)然後根據offset對特定位置做讀寫。範例裡使用offset 0x3F00,即Flash位置0xFC000 + 0x3F00 = 0xFFF00。第一次讀出來將值設定成0,之後每次開機都加1。 程式碼說明 之前的Flash API可以直接使用,但預設起始位置為0xFF000,大小為0x1000,如果要使用別的設定,則要呼叫begin(),範例裡第一個參數是起始位置,第二個參數是大小。 FlashMemory.begin(0xFC000, 0x4000); 要讀出這個區塊的值,使用readWord(),範例裡讀出offset 0x3F00的地方,也就是0xFC000 + 0x3F00 = 0xFFF00的位置,讀出來的大小為32-bit,放在回傳值裡…

Read More »

WiFiSSLClient Class

…in 8-bit.size: maximum size of the buffer. Returns This function returns the size of the buffer or returns “-1” if no buffer is available. Example Code Example: WiFiSSLClient (https://github.com/ambiot/ambd_arduino/blob/dev/Arduino_package/hardware/libraries/WiFi/examples/WiFiSSLClient/WiFiSSLClient.ino) Notes…

Read More »

BLEHIDGamepad Class

…the BLEHIDGamepad class assumes the HID report descriptor implements a gamepad device with 16 buttons, 6 16-bit axes and an 8-direction hat switch. This class will not work if a…

Read More »

Ameba ARDUINO: Release History

…1 byte instead of 4 bytes Version 1.1.3 – 2016/08/29 Feature: – Support uart settings on data bits, parity, stop bit, flow control Bug fix: – Fix malfunction on MQTT…

Read More »

AmebaZ

…Number: RTL8710BN 32-bit Arm®Cortex®-M4, up to 125MHz Memory 256KB RAM Key Features Integrated 802.11n Wi-Fi SoC Low Power Design XIP Hardware SSL Engine Other Features 1 SPI interface 2 UART…

Read More »

WiFiSSLClient Class

…in 8-bit.size: maximum size of the buffer. Returns This function returns the size of the buffer or returns “-1” if no buffer is available. Example Code Example: WiFiSSLClient (https://github.com/ambiot/ambd_arduino/blob/dev/Arduino_package/hardware/libraries/WiFi/examples/WiFiSSLClient/WiFiSSLClient.ino) Notes…

Read More »

USBHIDGamepad Class

…the USBHIDGamepad class assumes the HID report descriptor implements a gamepad device with 16 buttons, 6 axes with 16-bit resolution and an 8-direction hat switch. This class will not work…

Read More »

IR – Transmit IR NEC Raw Data and Decode

…為了確保可靠性,發送兩次地址和命令。• 調節脈衝距離。• 載波頻率為38kHz。• Bit Time為1.125ms或2.25ms。 調節 NEC協議使用Pulse Distance Encoding進行數據通信(圖四)。 “1”由2250us的總持續時間表示,其中560us的“marks”和(2250-560)us的“spaces”表示。 “0”由總持續時間1120us表示,其中560us是“marks”,而(1120-560)us是“spaces”。 圖四: NEC 調節 由於總共將傳輸32位元數據包含標頭和結束位元 (圖五)。如果我們在時間範圍內拆開數據,將有(2 + 32)x 2 +1 = 69個要傳輸的“marks”/“spaces”(圖六),形成原始NEC數據在Arduino“ *.ino”文件中進行傳輸。 圖五: 完整NEC數據的樣本(1或0) 圖六: NEC 原始完整數據的樣本(us) AMB21/AMB22 (IR…

Read More »

NfcTagClass Class

…UpdateTagContent (https://github.com/ambiot/amb1_arduino/blob/dev/Arduino_package/hardware/libraries/NFC/examples/UpdateTagContent/UpdateTagContent.ino) Notes and Warnings Only clears cached NDEF records in NfcTag object, does not affect records in NFC firmware. “NfcTag.h” must be included to use the class function. NfcTagClass::isUidValid…

Read More »

IR – Transmit IR Sony Data

…TV power code)。對於接收端,您可以使用示波器/邏輯分析儀查看波形並進行相應解碼。 圖一: Grove – 紅外線發射器 在傳輸端,發射器將發送 IR SONY 數據。更多詳情請參考SB-Projects的IR Remote Control Theory專題,了解IR遙控器操作原理和IR協議說明。在此範例中,我們將使用 Sony 作為傳輸協議。 Sony 特色 • 12-位元版本, 7 位元命令, 5 位元地址• 調節脈衝距離• 載波頻率為 40kHz• Bit time 為…

Read More »

BLEHIDGamepad Class

…the BLEHIDGamepad class assumes the HID report descriptor implements a gamepad device with 16 buttons, 6 16-bit axes and an 8-direction hat switch. This class will not work if a…

Read More »

BLEAdvertData Class

…the desired UUID contained in BLEUUID class object.uuidBitLength: UUID bit length for which a blank entry is to be added. Valid values: 16, 32, 128. Returns This function returns the…

Read More »

BLEAdvertData Class

…the desired UUID contained in BLEUUID class object.uuidBitLength: UUID bit length for which a blank entry is to be added. Valid values: 16, 32, 128. Returns This function returns the…

Read More »

Flash Memory – Use Flash Memory Larger Than 4K

…(預設起始位置為0xFF000,大小為0x1000)然後根據offset對特定位置做讀寫。範例裡使用offset 0x3F00,即Flash位置0xFC000 + 0x3F00 = 0xFFF00。第一次讀出來將值設定成0,之後每次開機都加1。 程式碼說明 之前的Flash API可以直接使用,但預設起始位置為0xFF000,大小為0x1000,如果要使用別的設定,則要呼叫begin(),範例裡第一個參數是起始位置,第二個參數是大小。 FlashMemory.begin(0xFC000, 0x4000); 要讀出這個區塊的值,使用readWord(),範例裡讀出offset 0x3F00的地方,也就是0xFC000 + 0x3F00 = 0xFFF00的位置,讀出來的大小為32-bit,放在回傳值裡 value = FlashMemory.readWord(0x3F00); 寫入則使用writeWord(),第一個參數是offset,第二個參數是要寫入的值。 FlashMemory.writeWord(0x3F0C, value); 解決方案 IoT SoC / MCU Video SoC…

Read More »

BLEDevice Class

…desired device appearance expressed as a 16-bit unsigned integer. Returns NA Example Code NA Notes and Warnings Refer to Bluetooth SIG assigned device appearances at https://www.bluetooth.com/specifications/gatt/characteristics/.“BLEDevice.h” must be included to…

Read More »
請先確認已安裝QQ通訊軟體
Please confirm that QQ communication software is installed