Git Product home page Git Product logo

lempa's Issues

PCB Schematic?

I can't seem to find the actual schematic for the PCB?

I've been working on a kinda similar thing, designed around a USB<-->UART FT232 instead of a pi, and I'm curious how you're dealing with GPIO0 and 3V3 on the ESP to rest it properly and such things.
I've been planning to use the reset circuit off the D1 mini, but I'm curious as to how you approached it.

Remote I/O error

[Errno 121] Remote I/O error
Traceback (most recent call last):
File "./program.py", line 54, in
cycle()
File "./program.py", line 41, in cycle
event = state.do_step()
File "/home/pi/LEMPA/states/wait_for_button_state.py", line 39, in do_step
if self.button_erase.loop() or self.button_prog.loop():
File "/home/pi/LEMPA/states/hat_button.py", line 68, in loop
return self.__check_long_click()
File "/home/pi/LEMPA/states/hat_button.py", line 43, in __check_long_click
self.app.print(self.long_click_action_name + "? " + str(pt))
File "/home/pi/LEMPA/application.py", line 58, in print
v.print(txt)
File "/home/pi/LEMPA/views/display_view.py", line 88, in print
self.__refresh()
File "/home/pi/LEMPA/views/display_view.py", line 78, in __refresh
self.disp.display()
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 182, in display
self._i2c.writeList(control, self._buffer[i:i+16])
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_GPIO/I2C.py", line 127, in writeList
self._bus.write_i2c_block_data(self._address, register, data)
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_PureIO/smbus.py", line 364, in write_i2c_block_data
self._device.write(data)
OSError: [Errno 121] Remote I/O error

                          Exception

Traceback (most recent call last):
File "./program.py", line 54, in
cycle()
File "./program.py", line 41, in cycle
event = state.do_step()
File "/home/pi/LEMPA/states/wait_for_button_state.py", line 39, in do_step
if self.button_erase.loop() or self.button_prog.loop():
File "/home/pi/LEMPA/states/hat_button.py", line 68, in loop
return self.__check_long_click()
File "/home/pi/LEMPA/states/hat_button.py", line 43, in __check_long_click
self.app.print(self.long_click_action_name + "? " + str(pt))
File "/home/pi/LEMPA/application.py", line 58, in print
v.print(txt)
File "/home/pi/LEMPA/views/display_view.py", line 88, in print
self.__refresh()
File "/home/pi/LEMPA/views/display_view.py", line 78, in __refresh
self.disp.display()
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 182, in display
self._i2c.writeList(control, self._buffer[i:i+16])
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_GPIO/I2C.py", line 127, in writeList
self._bus.write_i2c_block_data(self._address, register, data)
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_PureIO/smbus.py", line 364, in write_i2c_block_data
self._device.write(data)
OSError: [Errno 121] Remote I/O error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "./program.py", line 62, in
state = load_state(Application.APP_STATE_EXCEPTION)
File "./program.py", line 31, in load_state
app.app_state = code
File "/home/pi/LEMPA/application.py", line 92, in app_state
v.header()
File "/home/pi/LEMPA/views/display_view.py", line 98, in header
self.__refresh()
File "/home/pi/LEMPA/views/display_view.py", line 78, in __refresh
self.disp.display()
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 168, in display
self.command(0) # Column start address. (0 = reset)
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_SSD1306/SSD1306.py", line 129, in command
self._i2c.write8(control, c)
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_GPIO/I2C.py", line 114, in write8
self._bus.write_byte_data(self._address, register, value)
File "/home/pi/.local/lib/python3.7/site-packages/Adafruit_PureIO/smbus.py", line 322, in write_byte_data
self._device.write(data)
OSError: [Errno 121] Remote I/O error

Button won't response if down before state loads

Describe the bug
Button won't response if down before state loads

To Reproduce
Steps to reproduce the behavior:

  1. Push prog button
  2. Start LEMPA (don't let go of the button)
  3. Release the button only when it enters the "wait for button" state

Expected behavior
Clicking on a prog button will.. prog but it does not respond

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.