# Samples **Repository Path**: nanoframework/Samples ## Basic Information - **Project Name**: Samples - **Description**: nanoFramework 的例子 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 0 - **Created**: 2019-06-18 - **Last Updated**: 2025-05-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README [![Discord](https://img.shields.io/discord/478725473862549535.svg)](https://discord.gg/gCyBu8T) ![nanoFramework logo](https://github.com/nanoframework/Home/blob/main/resources/logo/nanoFramework-repo-logo.png) ----- 文档语言: [English](README.md) | [简体中文](README.zh-cn.md) ## 欢迎使用 **nanoFramework** 例程库! 本库包括了团队在测试时使用的例程代码,用于验证新增功能以及其它实验室探索。 随意浏览,随心所欲,尽享回报。 > 注意:有时候调试项目时,引用项目比引用Nuget包更方便,可以直接跟踪进入内部逻辑。因此,建议安装VS扩展,用于把Nuget引用切换为项目引用。 [NuGet Reference Switcher](https://github.com/rsuter/NuGetReferenceSwitcher). ## 例程分类 ### 通信 ### Special beginner * [🌶️ - Blink your first led](samples/Blinky) * [🌶️ - System.Device.Pwm](samples/PWM/System.Device.Pwm) ### Gpio, I2C, I2S, Spi, Pwm, Adc, Dac, 1-Wire, Serial * [🌶️ - 1-Wire sample](samples/1-Wire) * [🌶️ - Analogic/Digital converter](samples/GiantGecko.Adc) * [🌶️ - Analogic/Digital converter](samples/ADC) * [🌶️ - Blink your first led](samples/Blinky) * [🌶️ - Digital Analog Converter sample](samples/DAC) * [🌶️ - GPIO and events sample](samples/Gpio/Gpio+Events) * [🌶️ - GPIO and events sample (.NET IoT style)](samples/Gpio/Gpio+EventsIoTStyle) * [🌶️ - GPIO sample pack](samples/Gpio) * [🌶️ - System.Device.Pwm](samples/PWM/System.Device.Pwm) * [🌶️ - System.Device.PWM sample](samples/PWM) * [🌶️ - System.Device.Spi sample](samples/SPI) * [🌶️ to 🌶️🌶️ - System.IO.Ports serial Communication sample](samples/SerialCommunication) * [🌶️🌶️ - I2C GPS sample](samples/I2C/System.Device.I2c/GPS) * [🌶️🌶️ - I2C sample sample pack](samples/I2C) * [🌶️🌶️ - I2C Scanner sample](samples/I2C/NanoI2cScanner) * [🌶️🌶️ - I2S sample pack](samples/I2S) * [🌶️🌶️🌶️ - Using Azure SDK with BMP280 on M5Stack with .NET nanoFramework](samples/AzureSDK/AzureSDKSensorCertificate) ### AMQP * [🌶️🌶️ - AMQP sample pack](samples/AMQP) * [🌶️🌶️ - Azure Service Bus AMQP sample](samples/AMQP/Azure-ServiceBus-Sender) * [🌶️🌶️ -Azure AMQP sample](samples/AMQP/Azure-IoT-Hub) ### Azure specific * [🌶️🌶️ - AMQP sample pack](samples/AMQP) * [🌶️🌶️ - Azure IoT Hub SDK with MQTT protocol](samples/AzureSDK/AzureSDK) * [🌶️🌶️ - Azure IoT Plug & Play with MQTT protocol](samples/AzureSDK/AzureIoTPnP) * [🌶️🌶️ - Azure Service Bus AMQP sample](samples/AMQP/Azure-ServiceBus-Sender) * [🌶️🌶️ - Simple sample **with** Azure lib and retry pattern for connection](samples/AzureSDK/AzureSDKBasic) * [🌶️🌶️ -Azure AMQP sample](samples/AMQP/Azure-IoT-Hub) * [🌶️🌶️ to 🌶️🌶️🌶️ - Azure SDK sample pack](samples/AzureSDK) * [🌶️🌶️🌶️ - Azure Edge OTA example](samples/AzureSDK/AzureEdgeOta) * [🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor **with** Azure lib and deep sleep](samples/AzureSDK/AzureSDKSleepBMP280) * [🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor **without Azure lib** and with deep sleep](samples/AzureMQTTTwinsBMP280Sleep) * [🌶️🌶️🌶️ - HTTP.HttpAzureGET Sample](samples/HTTP/HttpAzureGET) * [🌶️🌶️🌶️ - HTTP.HttpAzurePOST Sample](samples/HTTP/HttpAzurePOST) * [🌶️🌶️🌶️ - Using Azure SDK with BMP280 on M5Stack with .NET nanoFramework](samples/AzureSDK/AzureSDKSensorCertificate) * [Azure IoT Device Provisioning Service (DPS) example](samples/AzureSDK/DpsSampleApp) ### Bluetooth * [🌶️ - Bluetooth Low Energy Serial profile sample](samples/Bluetooth/BluetoothLESerial) * [🌶️ - Bluetooth Low energy: adding, replacing services to the main service](samples/Bluetooth/BluetoothLESample3) * [🌶️ to 🌶️🌶️🌶️ - Bluetooth sample pack](samples/Bluetooth) * [🌶️🌶️ - Bluetooth Low energy: read static and dynamic values, notification, read/write value](samples/Bluetooth/BluetoothLESample1) * [🌶️🌶️ - Bluetooth Low energy: read/write with encryption a value](samples/Bluetooth/BluetoothLESample2) * [🌶️🌶️🌶️ - Improv Wifi provisioning](samples/Bluetooth/ImprovWifi) ### CAN * [🌶️ - CAN sample](samples/CAN) ### ESP32 specific * [🌶️ - Hardware ESP32 Deep sleep sample](samples/Hardware.Esp32) * [🌶️ to 🌶️🌶️🌶️ - Bluetooth sample pack](samples/Bluetooth) * [🌶️🌶️ - Hardware ESP32 RMT sample pack](samples/Hardware.Esp32.Rmt) * [🌶️🌶️ - NeoPixel Strip WS2812 with RMT](samples/Hardware.Esp32.Rmt/NeoPixelStrip) * [🌶️🌶️ - NeoPixel Strip WS2812 with RMT low memory](samples/Hardware.Esp32.Rmt/NeoPixelStripLowMemory) * [🌶️🌶️ - Simple sample **with** Azure lib and retry pattern for connection](samples/AzureSDK/AzureSDKBasic) * [🌶️🌶️ - Ultrasonic HC-SR04 sensor with RMT](samples/Hardware.Esp32.Rmt/Ultrasonic) * [🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor **with** Azure lib and deep sleep](samples/AzureSDK/AzureSDKSleepBMP280) * [🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor **without Azure lib** and with deep sleep](samples/AzureMQTTTwinsBMP280Sleep) * [🌶️🌶️🌶️ - Improv Wifi provisioning](samples/Bluetooth/ImprovWifi) ### File and storage access * [🌶️ - System.IO.FileSystem samples](samples/System.IO.FileSystem) ### Giant Gecko specific * [🌶️ to 🌶️🌶️ - Giant Gecko hardware sample pack](samples/Hardware.GiantGecko) * [🌶️🌶️ - Giant Gecko Power Mode](samples/Hardware.GiantGecko/GiantGecko.PowerMode) ### Graphics for screens * [🌶️🌶️ - Graphics Primitives](samples/Graphics/Primitives) * [🌶️🌶️ - Screen samples](samples/Graphics/Screens) * [🌶️🌶️ -Simple WPF](samples/Graphics/SimpleWpf) * [🌶️🌶️ to 🌶️🌶️🌶️ -Graphics samples](samples/Graphics) * [🌶️🌶️🌶️ - Tetris Demo Game for nanoFramework](samples/Graphics/Tetris) ### IoT.Device * [🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor **with** Azure lib and deep sleep](samples/AzureSDK/AzureSDKSleepBMP280) * [🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor **without Azure lib** and with deep sleep](samples/AzureMQTTTwinsBMP280Sleep) * [🌶️🌶️🌶️ - Using Azure SDK with BMP280 on M5Stack with .NET nanoFramework](samples/AzureSDK/AzureSDKSensorCertificate) ### Interop * [🌶️🌶️ - Native events sample](samples/NativeEvents) * [🌶️🌶️🌶️ - Interop sample](samples/Interop) ### Json * [🌶️🌶️ - nanoFramework Json sample](samples/Json) ### MQTT * [🌶️🌶️ to 🌶️🌶️🌶️ - MQTT sample pack](samples/MQTT) * [🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor **without Azure lib** and with deep sleep](samples/AzureMQTTTwinsBMP280Sleep) ### Networking including HTTP, SSL * [🌶️ - UdpClient sample pack](samples/UdpClient) * [🌶️ - WebSocket Client Sample](samples/WebSockets/WebSockets.Client.Sample) * [🌶️ - WiFI samples](samples/Wifi) * [🌶️ to 🌶️🌶️ - .NET **nanoFramework** Webserver sample pack](samples/Webserver) * [🌶️ to 🌶️🌶️ - WebSocket sample pack](samples/WebSockets) * [🌶️🌶️ - HTTP Listener sample](samples/HTTP/HttpListener) * [🌶️🌶️ - HTTP sample pack](samples/HTTP) * [🌶️🌶️ - HTTP WebRequest sample](samples/HTTP/HttpWebRequest) * [🌶️🌶️ - Networking sample pack](samples/Networking) * [🌶️🌶️ - WebSocket Server Sample with RGB Led](samples/WebSockets/WebSockets.Server.RgbSample) * [🌶️🌶️ - WebSocket ServerClient Sample](samples/WebSockets/Websockets.ServerClient.Sample) * [🌶️🌶️ - Wifi Soft AP sample](samples/WiFiAP) * [🌶️🌶️ to 🌶️🌶️🌶️ - MQTT sample pack](samples/MQTT) * [🌶️🌶️ to 🌶️🌶️🌶️ - TLS sample pack](samples/SSL) * [🌶️🌶️🌶️ - HTTP.HttpAzureGET Sample](samples/HTTP/HttpAzureGET) * [🌶️🌶️🌶️ - HTTP.HttpAzurePOST Sample](samples/HTTP/HttpAzurePOST) ### Real Time Clock * [🌶️ - RTC sample](samples/RTC) ### STM32 Specific * [🌶️ - Giant Gecko Read Device IDs](samples/Hardware.GiantGecko/GiantGecko.ReadDeviceIDs) * [🌶️ - STM32 Alarm](samples/Hardware.Stm32/Stm32.TestAlarms) * [🌶️ - STM32 Read Device ID](samples/Hardware.Stm32/Stm32.ReadDeviceIDs) * [🌶️ to 🌶️🌶️ - Hardware STM32 sample pack](samples/Hardware.Stm32) * [🌶️🌶️ - STM32 Backup Memory](samples/Hardware.Stm32/Stm32.BackupMemory) * [🌶️🌶️ - STM32 Power Mode](samples/Hardware.Stm32/Stm32.PowerMode) ### Texas Instrument specific * [🌶️ - Texas Instruments EasyLink sample pack](samples/TI.EasyLink) * [🌶️ - TI utilities](samples/Hardware.TI/TI.Utilities) * [🌶️ to 🌶️🌶️ - Hardware TI SimpleLink sample pack](samples/Hardware.TI) * [🌶️🌶️ - TI Power Mode](samples/Hardware.TI/TI.PowerMode) ### Tools and utilities * [🌶️ - Dependency injection sample pack](samples/DependencyInjection) * [🌶️ - Logging samples](samples/Logging) * [🌶️ - Unit Test framework sample pack](samples/UnitTest) * [🌶️🌶️ - Hosting sample pack](samples/Hosting) ### System related * [🌶️ - Collections sample](samples/Collections) * [🌶️ - Convert Base64 sample pack](samples/Converter.Base64) * [🌶️ - Debug Garbage Collector Test](samples/DebugGC.Test) * [🌶️ - GPIO and events sample](samples/Gpio/Gpio+Events) * [🌶️ - GPIO and events sample (.NET IoT style)](samples/Gpio/Gpio+EventsIoTStyle) * [🌶️ - Managed resources sample](samples/ManagedResources) * [🌶️ - Number Parsing sample pack](samples/NumberParser) * [🌶️ - RTC sample](samples/Timer) * [🌶️ - System.Random sample](samples/System.Random) * [🌶️ - ToString samples](samples/ToStringTest) * [🌶️ to 🌶️🌶️ - Threading sample pack](samples/Threading) * [🌶️🌶️ - Execution Constraint demo](samples/ExecutionConstraint) * [🌶️🌶️ - GC stress test](samples/GCStressTest) * [🌶️🌶️ - Native events sample](samples/NativeEvents) * [🌶️🌶️ - Reflection sample pack](samples/Reflection) * [🌶️🌶️🌶️ - Interop sample](samples/Interop) ### USB Client related * [System.Device.UsbClient sample pack](samples/UsbClient) ### Wifi * [🌶️ - WiFI samples](samples/Wifi) * [🌶️🌶️ - Wifi Soft AP sample](samples/WiFiAP) ## 文档反馈 有关文档、提供反馈、问题以及如何做出贡献的信息,请参阅 [Home repo](https://github.com/nanoframework/Home). 加入我们的讨论社区 [here](https://discord.gg/gCyBu8T). ## 信用 本项目贡献者可在 [CONTRIBUTORS](https://github.com/nanoframework/Home/blob/main/CONTRIBUTORS.md) 中找到 ## 授权 **nanoFramework** 例程基于 [MIT license](https://opensource.org/licenses/MIT) 授权。 ## 行为准则 本项目采用了 [Contributor Covenant](http://contributor-covenant.org/) 规范来阐明社区预期行为。