README.md
Document Language: English | 简体中文
Welcome to the nanoFramework team code samples repository!
This repo contains code samples used by the team when testing, working on proof of concepts for new and improved features and other explorational endeavours. Feel free to browse, take what you like and contribute back if you want.
Note: sometimes it's convenient to reference the source code instead of the NuGet packages in projects that require debugging by following the execution flow into other projects or even class libraries. For that we recommend using a very handy Visual Studio extension that allows NuGet assembly references to project references switching. That's NuGet Reference Switcher.
If you are looking for Iot.Device samples, they are all in the Iot.Device repository.
Sample by category
Our samples uses 🌶️ to show how easy or complicated those samples are. The samples with 🌶️ are easy and recommended for beginners. The ones with 🌶️🌶️🌶️ are more advanced and requires some knowledge. This knowledge may not be on .NET nanoFramework but on some other elements like certificates or networking for example.
Special beginner
Gpio, I2C, I2S, Spi, Pwm, Adc, Dac, 1-Wire, Serial
- 🌶️ - 1-Wire sample
- 🌶️ - Analogic/Digital converter
- 🌶️ - Analogic/Digital converter
- 🌶️ - Blink your first led
- 🌶️ - Digital Analog Converter sample
- 🌶️ - ESP32 Pulse Counter sample
- 🌶️ - GPIO and events sample
- 🌶️ - GPIO and events sample (.NET IoT style)
- 🌶️ - GPIO sample pack
- 🌶️ - System.Device.Pwm
- 🌶️ - System.Device.PWM sample
- 🌶️ - System.Device.Spi sample
- 🌶️ to 🌶️🌶️ - System.IO.Ports serial Communication sample
- 🌶️🌶️ - I2C sample sample pack
- 🌶️🌶️ - I2C Scanner sample
- 🌶️🌶️ - I2S Microphone sample
- 🌶️🌶️ - I2S sample pack
- 🌶️🌶️ - I2S Speaker sample
- 🌶️🌶️ - WebServer to test pour Servo Motors
- 🌶️🌶️🌶️ - Using Azure SDK with BMP280 on M5Stack with .NET nanoFramework
AMQP
Azure specific
- 🌶️🌶️ - AMQP sample pack
- 🌶️🌶️ - Azure IoT Hub SDK with MQTT protocol
- 🌶️🌶️ - Azure IoT Plug & Play with MQTT protocol
- 🌶️🌶️ - Azure Service Bus AMQP sample
- 🌶️🌶️ - Simple sample with Azure lib and retry pattern for connection
- 🌶️🌶️ - Using a Modem like SIM7080, simple sample with Azure lib and retry pattern for connection
- 🌶️🌶️ -Azure AMQP sample
- 🌶️🌶️ to 🌶️🌶️🌶️ - Azure SDK sample pack
- 🌶️🌶️🌶️ - Azure Edge OTA example
- 🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor with Azure lib and deep sleep
- 🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor without Azure lib and with deep sleep
- 🌶️🌶️🌶️ - HTTP.HttpAzureGET Sample
- 🌶️🌶️🌶️ - HTTP.HttpAzurePOST Sample
- 🌶️🌶️🌶️ - Using Azure SDK with BMP280 on M5Stack with .NET nanoFramework
- Azure IoT Device Provisioning Service (DPS) example
Bluetooth
- 🌶️ - Bluetooth Low Energy Serial profile sample
- 🌶️ - Bluetooth Low energy: adding, replacing services to the main service
- 🌶️ to 🌶️🌶️🌶️ - Bluetooth sample pack
- 🌶️🌶️ - Demonstrates how to use the watcher filter classes
- 🌶️🌶️ - Bluetooth Low energy: Broadcast current values in a Bluetooth advertisement
- 🌶️🌶️ - Bluetooth Low energy: Environmental Sensor data collection
- 🌶️🌶️ - Bluetooth Low energy: read static and dynamic values, notification, read/write value
- 🌶️🌶️ - Bluetooth Low energy: read/write with encryption a value
- 🌶️🌶️ - Bluetooth Low energy: Watch for Bluetooth Advertisements
- 🌶️🌶️🌶️ - Create an IBeacon
- 🌶️🌶️🌶️ - Bluetooth Low energy: Demonstrates pairing and authentication in Client program
- 🌶️🌶️🌶️ - Improv Wifi provisioning
CAN
ESP32 specific
- 🌶️ - ESP32 Pulse Counter sample
- 🌶️ - Hardware ESP32 Deep sleep sample
- 🌶️ - Touch pad ESP32 sample
- 🌶️ to 🌶️🌶️🌶️ - Bluetooth sample pack
- 🌶️🌶️ - Hardware ESP32 RMT sample pack
- 🌶️🌶️ - Infrared remote receiver based on VS1838 with RMT
- 🌶️🌶️ - NeoPixel Strip WS2812 with RMT
- 🌶️🌶️ - NeoPixel Strip WS2812 with RMT low memory
- 🌶️🌶️ - Simple sample with Azure lib and retry pattern for connection
- 🌶️🌶️ - Ultrasonic HC-SR04 sensor with RMT
- 🌶️🌶️ - Using a Modem like SIM7080, simple sample with Azure lib and retry pattern for connection
- 🌶️🌶️🌶️ - Create an IBeacon
- 🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor with Azure lib and deep sleep
- 🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor without Azure lib and with deep sleep
- 🌶️🌶️🌶️ - Improv Wifi provisioning
File and storage access
Giant Gecko specific
Graphics for screens
- 🌶️🌶️ - Graphics Primitives
- 🌶️🌶️ - Screen samples
- 🌶️🌶️ - Using an existing generic graphic driver
- 🌶️🌶️ -Simple WPF
- 🌶️🌶️ to 🌶️🌶️🌶️ -Graphics samples
- 🌶️🌶️🌶️ - Creating your own generic graphic driver
- 🌶️🌶️🌶️ - Tetris Demo Game for nanoFramework
IoT.Device
- 🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor with Azure lib and deep sleep
- 🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor without Azure lib and with deep sleep
- 🌶️🌶️🌶️ - Using Azure SDK with BMP280 on M5Stack with .NET nanoFramework
Interop
Json
MQTT
- 🌶️🌶️ to 🌶️🌶️🌶️ - MQTT sample pack
- 🌶️🌶️🌶️ - Complete Azure MQTT sample using BMP280 sensor without Azure lib and with deep sleep
Networking including HTTP, SSL
- 🌶️ - UdpClient sample pack
- 🌶️ - WebSocket Client Sample
- 🌶️ - WiFI samples
- 🌶️ to 🌶️🌶️ - .NET nanoFramework Webserver sample pack
- 🌶️ to 🌶️🌶️ - WebSocket sample pack
- 🌶️🌶️ - HTTP Listener sample
- 🌶️🌶️ - HTTP sample pack
- 🌶️🌶️ - HTTP WebRequest sample
- 🌶️🌶️ - Networking sample pack
- 🌶️🌶️ - OpenTHread Networking sample pack
- 🌶️🌶️ - WebServer to test pour Servo Motors
- 🌶️🌶️ - WebSocket Server Sample with RGB Led
- 🌶️🌶️ - WebSocket ServerClient Sample
- 🌶️🌶️ - Wifi Soft AP sample
- 🌶️🌶️ to 🌶️🌶️🌶️ - MQTT sample pack
- 🌶️🌶️ to 🌶️🌶️🌶️ - TLS sample pack
- 🌶️🌶️🌶️ - HTTP.HttpAzureGET Sample
- 🌶️🌶️🌶️ - HTTP.HttpAzurePOST Sample
Real Time Clock
STM32 Specific
- 🌶️ - Giant Gecko Read Device IDs
- 🌶️ - STM32 Alarm
- 🌶️ - STM32 Read Device ID
- 🌶️ to 🌶️🌶️ - Hardware STM32 sample pack
- 🌶️🌶️ - STM32 Backup Memory
- 🌶️🌶️ - STM32 Power Mode
Texas Instrument specific
- 🌶️ - Texas Instruments EasyLink sample pack
- 🌶️ - TI utilities read IEEE address
- 🌶️ to 🌶️🌶️ - Hardware TI SimpleLink sample pack
- 🌶️🌶️ - TI Power Mode
Tools and utilities
- 🌶️ - Dependency injection sample pack
- 🌶️ - Logging samples
- 🌶️ - Unit Test framework sample pack
- 🌶️🌶️ - Hosting sample pack
System related
- 🌶️ - Collections sample
- 🌶️ - Convert Base64 sample pack
- 🌶️ - Debug Garbage Collector Test
- 🌶️ - GPIO and events sample
- 🌶️ - GPIO and events sample (.NET IoT style)
- 🌶️ - Managed resources sample
- 🌶️ - Number Parsing sample pack
- 🌶️ - RTC sample
- 🌶️ - System.Random sample
- 🌶️ - ToString samples
- 🌶️ to 🌶️🌶️ - Threading sample pack
- 🌶️🌶️ - Execution Constraint demo
- 🌶️🌶️ - GC stress test
- 🌶️🌶️ - Native events sample
- 🌶️🌶️ - Reflection sample pack
- 🌶️🌶️🌶️ - Interop sample
USB Client related
Wifi
Feedback and documentation
For documentation, providing feedback, issues and finding out how to contribute please refer to the Home repo.
Join our Discord community here.
Credits
The list of contributors to this project can be found at CONTRIBUTORS.
License
The nanoFramework samples are licensed under the MIT license.
Code of Conduct
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community. For more information see the .NET Foundation Code of Conduct.
.NET Foundation
This project is supported by the .NET Foundation.