Skip to content

🍬 Code samples from the nanoFramework team used in testing, proof of concepts and other explorational endeavours


Notifications You must be signed in to change notification settings


Repository files navigation


nanoFramework logo

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


Azure specific



ESP32 specific

File and storage access

Giant Gecko specific

Graphics for screens





Networking including HTTP, SSL

Real Time Clock

STM32 Specific

Texas Instrument specific

Tools and utilities

System related

USB Client related


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.


The list of contributors to this project can be found at CONTRIBUTORS.


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.