Coder Social home page Coder Social logo

mk3-firmware's People

Contributors

alistairuk avatar castaway avatar davea avatar dpslwk avatar giannie avatar jonty avatar marekventur avatar mattbrejza avatar philcrump avatar sammachin avatar tbsliver avatar thinkl33t 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

Watchers

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

mk3-firmware's Issues

Decide on how to run files

One file can run another file either by doing:

  • execfile("new_file.py")
  • __import__("new_file.py")
  • m = __import__("new_file.py"); m.main()

The issues with each idea is:

  • Bit horrible, the called function can access any variables created by the parent. Upon exiting the called file, the variables created by the called function still exist
  • Need to up-import, otherwise the code can only be run once
  • Requires each file to have a main(): function

Make badge.py all staticmethods

there should only ever be one instance for the pin and interrupt objects, no instance of the class should be needed, so any file could call:
import badge; badge.is_pressed()

.bmp images are drawn sideways

If orientation is 90/270. Doesn't seem to happen for imageboxes, or gifs. Probably due to hacking about with the driver

Keyboard input doesn't appear in Textbox

import os
import ugfx
import pyb

ugfx.init()

ugfx.Keyboard(0, int(ugfx.height()/2), ugfx.width(), int(ugfx.height()/2))
ugfx.Textbox(0, 0,ugfx.width(),int(ugfx.height()/2))

tim = pyb.Timer(3)
tim.init(freq=60)
tim.callback(lambda t:ugfx.poll())

while True:
    pyb.wfi()

Add ugfx_reset

Calls _gosHeapInit to ensure rogue apps cant assign all the RAM without clearing

Modify CC3100 Driver to not require busy loop to be in python

At the moment when you connect to an access point you have to code a busy loop as below:

while (not nic.is_connected()):
    nic.update()
    pyb.delay(100)

This is not idea for the developer, and has no timeout in this form.

Restructure the connect() method to include the loop, and to take a timeout value.

Test increasing CC3100 SPI Speed

It's quite low atm, from my testing with 10cm cables. Now it is correctly working on board, we should increase the transfer speed

Expose SSL sockets to micropython

Currently it's not possible to create an SSL socket through micropython. This is for two reasons,

  1. the protocol argument of the constructor is not passed through in stmhal/modusocket.c socket_make_new()

  2. There is no exposure to setup the structure for the certificates exposed to micropython yet.

ugfx interrupts

Should ugfx_yield() (which does things like poll buttons and redraw widgets when needed) be moved from systick (almost certainly), and moved to TIM3? with a low priority interrupt?

Allow primitives to be called by containers for relative drawing

The primitives in ugfx.c can be called from containers too if function prototype is placed in ugfx.h.

Each primitive will need to check the type of the mp_obj_t self_in object, and decide whether to call gdispFillXxx(...) or gwinFillXxx(GHandle gh, ...)

The primitives then need adding to the pyb_ugfx_container_locals_dict_table of each container class

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.