Giter Site home page Giter Site logo

mo-sw-dev / pxt-ds18b20-calliope Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drbones/pxt-ds18b20-calliope

0.0 1.0 0.0 141 KB

ds18b20 Temperatursensor mit dem Calliope Mini auslesen.

Home Page: https://www.youtube.com/watch?v=yuwQdfx68so

Makefile 0.87% C++ 55.77% TypeScript 43.36%

pxt-ds18b20-calliope's Introduction

DS18B20 Temperature Sensor for Microbit

Table of Contents

Summary

DS18B20 module, support single bus control, and read temperature.

Blocks

Read temperature, return a number, makecode do not support floats, so the value is amplifies up to 100 times.

image

Read temperature, return a string.

image

Example

Example for JavaScript

basic.forever(() => {
    serial.writeValue("temp ", DS18B20.Temperature_number(DS18B20.pin.pin0))
    basic.pause(1000)
    serial.writeLine("temp : " + DS18B20.Temperature_string(DS18B20.pin.pin0))
    basic.pause(1000)
})

License

GUI

Forked from https://github.com/mengbishu/pxt-ds18b20

  • Changed pins for Calliope mini
  • added german translation

Supported targets

  • for PXT/Calliope

pxt-ds18b20-calliope's People

Contributors

mengbishu avatar mkleinsb avatar mo-sw-dev avatar

Watchers

James Cloos 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.