GithubHelp home page GithubHelp logo

test-mass-forker-org-1 / jacdac-dotnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microsoft/jacdac-dotnet

0.0 0.0 0.0 2.96 MB

Jacdac .NET library

Home Page: https://aka.ms/jacdac

License: MIT License

Shell 0.34% JavaScript 0.17% C# 99.47% Batchfile 0.02%

jacdac-dotnet's Introduction

Jacdac for .NET

Jacdac is a plug-and-play hardware/software stack for microcontrollers and their peripherals (sensors/actuators), with applications to rapid prototyping, making, and physical computing.

This repository contains .NET Framework 2.0, .NET nanoframework and TinyCLR client libraries for the Jacdac protocol, as well as transports over USB, SPI, WebSockets.

Assemblies

The Jacdac project contains C# sources of the Jacdac protocol for various .NET runtime, including desktop or TinyClR. To avoid mscorlib issues, each platform recompiles these sources into its own assembly where C# files are simply shared as links. As a result, the C# used in the Jacdac project is .NET Framework 2.0/.NET nanoframework/TinyCLR compatible (and also inherits limitations thereof).

  • Jacdac.NET, core runtime
  • Jacdac.NET.Clients, service clients
  • Jacdac.NET.Logging, a logging provider that allows to send log messages over the Jacdac bus
  • Jacdac.NET.Transports.Spi, SPI transport layer for SPI Jacdapter using .NET IoT
  • Jacdac.NET.Transports.WebSockets, WebSocket transport
  • Jacdac.NET.Transports.Hf2, HF2 protocol layer, .NET Framework 2.0
  • Jacdac.NET.Transports.LibUsb, Usb transport based on libusb, .NET Framework 2.0
  • Jacdac.NET.Servers.SoundPlayer, .NET Framework 2.0 sound player server implementation
  • Jacdac.TinyCLR, mirror of Jacdac library and UART transport
  • Jacdac.TinyCLR.Clients, service clients
  • Jacdac.TinyCLR.Storage, SD card storage support

Under development: we need help to either write a native single wire serial transport... or build a SPI HAT for Feather S2.

  • Jacdac.Nano, mirror of Jacdac library and UART transport
  • Jacdac.Nano.Transports.Spi, SPI transport layer for SPI Jacdapter using .NET nanoframework
  • Jacdac.Nano.Clients, service clients

Sample sources

The samples are mostly foud in ./Jacdac/Samples and cross-compiled into these projects:

  • Jacdac.NET.Playground, change the command line argument to match the sample type name
  • Jacdac.TinyCLR.Playground, change the sample type name in Program.cs

Misc:

  • Jacdac.DevTools, a .NET Core web site/proxy to help with developing Jacdac applications
  • Jacdac.Tests, unit tests, .NET6
  • Jacdac, C# Jacdac sources. This package serves as a placeholder for C# files and and is not referenced anywhere. For development purposes only.

DevTools

Launch Jacdac.DevTools and use the WebSocket transport to connect your Jacdac bus to a local dashboard. This allows you to test your code against simulators and physical devices, and leverage the tooling available in the Jacdac network.

To installm,

dotnet tool install jacdac.devtools

To run,

jacdac.devtools

Add spi on Raspberry Pi to also connect to the JacHAT

Developer setup

The rest of this page is for developers of the jacdac-dotnet library. For user documentation, go to https://microsoft.github.io/jacdac-docs/clients/dotnet.

  • clone this repository and pull all submodules
git clone https://github.com/microsoft/jacdac-dotnet
git submodule update --init --recursive
git pull
  • Restore Nuget packages. (Either in your preferred IDE/Editor or using dotnet restore).
  • Execute the desired tool or build the core library using your IDE or dotnet build/dotnet run

Testing with .NET and Jacdac development server

  • install NodeJS 14+
  • install Jacdac cli
npm install -g jacdac-cli
  • launch Jacdac dev tools
jacdac devtools
  • start running or debugging Jacdac.NET.Playground. The webdashboard will serve as a connector to the hardware.

.NET IoT Raspberry Pi

  • Open bash
sh ./publish.sh
  • From a SSH session
cd dotnet
dotnet Jacdac.NET.Playground spi

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

jacdac-dotnet's People

Contributors

pelikhan avatar fnawratil avatar jamesadevine avatar microsoftopensource avatar semantic-release-bot avatar palomino34 avatar microsoft-github-operations[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.