Giter Site home page Giter Site logo

Comments (5)

ChrisVeigl avatar ChrisVeigl commented on June 2, 2024

changing AT SA so that it overwrites the slot data in EEPROM is not trivial and would need some changes in the eeprom implementation (move all remaining data if the slot size changes), see also discussion in
#46

we could discuss several strategies:

  • improve the speed of EEPROM access and implement the defragmentation / slot copy function
  • store keystings seperately so that less data must be copied on demand
  • store slot data in ESP32 flash (if BT-AddOn is available)
  • use a fixed slot size (reserve memory for max keystring length) - is would be fast and easy, but is wasteful (and no option for the much smaller EEPROM in the FABI system / AVR)

from flipmouse.

ChrisVeigl avatar ChrisVeigl commented on June 2, 2024

a first version of EEPROM slot copy is there:
8f36024
although it should work in theory and the EEPROM bin/block writes improve performance, this needs further consideration ...
I think it is not reasonable to save (and respectively change EEPROM content) every time a user makes small changes in the FlipMouse configuration.

from flipmouse.

ChrisVeigl avatar ChrisVeigl commented on June 2, 2024

further worked on that, see 27696be

Using EEPROM page writes and optimized I2C buffer size, a slot save can now be performed at 1/3 of the time, and moving slots (in course of the save action) is 10 times faster. Example timing for moving three slots and then overwriting a slot: ~580 ms.

Please note that the C# GUI in this branch now performs the AT SA action when pressing the "Test Settings" button, and that basic debug messages are turned on in the firmware.

from flipmouse.

klues avatar klues commented on June 2, 2024

sounds great! πŸ‘
Sorry for my naive thought that AT SA was just lacking of a single else statement πŸ˜‰

from flipmouse.

benjaminaigner avatar benjaminaigner commented on June 2, 2024

With all the last commits on v2 and the ongoing work on v3 with the RP2040 branch, we can close this issue.

from flipmouse.

Related Issues (20)

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.