Coder Social home page Coder Social logo

doc's Introduction

doc's People

Contributors

defragster avatar luni64 avatar lunoptics avatar teensyuser avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

doc's Issues

pin.h update

For the future you might change pin.h in pinList to read
#elif defined(ARDUINO_TEENSY40) || defined (ARDUINO_TEENSY41)

FAQ Structure

Looks like the FAQ is going to get a nightmare to maintain when it grows.

What about having the table of content on the FAQ landing page only and then do a separate page for each item with a "back" link to the FAQ landing page?.
That would also make the linking much easier (could use standard [[pagename]] links then)
(Would look as simple as the code in the sidebar)

Not able to teensy.write/read in python.

Default Code:

import hid
from urllib import request
import json

hidInterfaces = hid.enumerate()          # get all hid interfaces
t_it = filter(lambda t:                  # filter by vid and usagepage/usage
  t['vendor_id']  == 0x16c0 and
  t['usage_page'] == 0xFFAB and
  t['usage']      == 0x0200, hidInterfaces)

rawHID_interface = next(t_it, None)      # 'firstOrDefault'

if rawHID_interface != None:
   teensy = hid.Device(path = rawHID_interface["path"])

   for i in range(10):
     jsonurl = request.urlopen("https://api.adviceslip.com/advice")
     slip = '\0' + json.loads(jsonurl.read())['slip']['advice']  # the sent report must always start with \0
     teensy.write(slip.encode()[:64])                            # rawHID report is 64 bytes long

Error:

  File "hid.pyx", line 164, in hid.device.write
ValueError: not open

Does anyone know what error is this?

Not all data in DMAMEM/RAM2 survives a warm reset/restart

In : https://github.com/TeensyUser/doc/wiki/The-Watchdog-timer

This is not entirely true. Some portion of lower (?) DMAMEM is used by the security HAB (?) code before startup and data stored there will be wiped and overwritten. There is a forum post somewhere - or it could be tested - some 32KB (???) area is disturbed as the processor wakes up and verifies chip security. Any area above that - that was flushed from cache - will be retained. The area used may be different between Locked and UnLocked as well???

// DMAMEM causes allocation in 'static' RAM2 on Teensy using 1062 processor
// It is not initialized and will retain value while powered
// BUT - it writes through a cache that must be flushed to assure it is current
// This works for any DMAMEM allocation of any variable type or structure

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.