flexitac 0.2.0__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {flexitac-0.2.0/flexitac.egg-info → flexitac-0.2.2}/PKG-INFO +15 -15
  2. {flexitac-0.2.0 → flexitac-0.2.2}/README.md +14 -14
  3. {flexitac-0.2.0 → flexitac-0.2.2}/examples/stream_frames.py +1 -1
  4. {flexitac-0.2.0 → flexitac-0.2.2}/flexitac/__init__.py +1 -1
  5. {flexitac-0.2.0 → flexitac-0.2.2/flexitac.egg-info}/PKG-INFO +15 -15
  6. {flexitac-0.2.0 → flexitac-0.2.2}/LICENSE +0 -0
  7. {flexitac-0.2.0 → flexitac-0.2.2}/examples/__init__.py +0 -0
  8. {flexitac-0.2.0 → flexitac-0.2.2}/examples/visualize_heatmap.py +0 -0
  9. {flexitac-0.2.0 → flexitac-0.2.2}/flexitac/find_port.py +0 -0
  10. {flexitac-0.2.0 → flexitac-0.2.2}/flexitac/firmware/__init__.py +0 -0
  11. {flexitac-0.2.0 → flexitac-0.2.2}/flexitac/firmware/template.ino +0 -0
  12. {flexitac-0.2.0 → flexitac-0.2.2}/flexitac/flash.py +0 -0
  13. {flexitac-0.2.0 → flexitac-0.2.2}/flexitac/logging_utils.py +0 -0
  14. {flexitac-0.2.0 → flexitac-0.2.2}/flexitac/py.typed +0 -0
  15. {flexitac-0.2.0 → flexitac-0.2.2}/flexitac/sensor.py +0 -0
  16. {flexitac-0.2.0 → flexitac-0.2.2}/flexitac.egg-info/SOURCES.txt +0 -0
  17. {flexitac-0.2.0 → flexitac-0.2.2}/flexitac.egg-info/dependency_links.txt +0 -0
  18. {flexitac-0.2.0 → flexitac-0.2.2}/flexitac.egg-info/entry_points.txt +0 -0
  19. {flexitac-0.2.0 → flexitac-0.2.2}/flexitac.egg-info/requires.txt +0 -0
  20. {flexitac-0.2.0 → flexitac-0.2.2}/flexitac.egg-info/top_level.txt +0 -0
  21. {flexitac-0.2.0 → flexitac-0.2.2}/pyproject.toml +0 -0
  22. {flexitac-0.2.0 → flexitac-0.2.2}/setup.cfg +0 -0
  23. {flexitac-0.2.0 → flexitac-0.2.2}/tests/test_find_port.py +0 -0
  24. {flexitac-0.2.0 → flexitac-0.2.2}/tests/test_flash.py +0 -0
  25. {flexitac-0.2.0 → flexitac-0.2.2}/tests/test_sensor.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flexitac
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Python runtime and flashing tools for FlexiTac tactile sensors
5
5
  Author-email: Wesley Maa <wesley.maa@gmail.com>
6
6
  License-Expression: MIT
@@ -24,8 +24,8 @@ Dynamic: license-file
24
24
 
25
25
  # flexitac
26
26
 
27
- Python interface for [FlexiTac](https://flexitac.github.io/) tactile sensors:
28
- flash Arduino firmware, then read framed sensor data over serial.
27
+ Python interface for [FlexiTac](https://flexitac.github.io/) tactile sensors.
28
+ Allows you to easily [flash](#flexitac-flash) Arduino firmware and read framed sensor data over serial.
29
29
 
30
30
  Defaults target the standard FlexiTac 12x32 sensor (12 rows wired to mux
31
31
  channels 4-15). Override `--rows`, `--cols`, and `--mux-offset` for variants.
@@ -73,12 +73,23 @@ uv run flexitac-stream --port /dev/ttyUSB0
73
73
  uv run flexitac-heatmap --port /dev/ttyUSB0
74
74
  ```
75
75
 
76
+ ### `flexitac-find-port`
77
+
78
+ Not sure which `/dev/tty*` your sensor is on? Run:
79
+
80
+ ```bash
81
+ flexitac-find-port
82
+ ```
83
+
84
+ It snapshots ports, asks you to unplug the sensor, then reports whichever port
85
+ disappeared.
86
+
76
87
  ### `flexitac-stream`
77
88
 
78
89
  Stream frames and print FPS / signal stats:
79
90
 
80
91
  ```bash
81
- flexitac-stream --port /dev/ttyUSB0 --frames 30
92
+ flexitac-stream --port /dev/ttyUSB0 --frames 3000
82
93
  ```
83
94
 
84
95
  ```
@@ -105,17 +116,6 @@ flexitac-heatmap --port /dev/ttyUSB0
105
116
 
106
117
  Press the sensor pad -- bright spots should track your touch.
107
118
 
108
- ### `flexitac-find-port`
109
-
110
- Not sure which `/dev/tty*` your sensor is on? Run:
111
-
112
- ```bash
113
- flexitac-find-port
114
- ```
115
-
116
- It snapshots ports, asks you to unplug the sensor, then reports whichever port
117
- disappeared.
118
-
119
119
  ### `flexitac-flash`
120
120
 
121
121
  Requires [`arduino-cli`](https://arduino.github.io/arduino-cli/latest/installation/).
@@ -1,7 +1,7 @@
1
1
  # flexitac
2
2
 
3
- Python interface for [FlexiTac](https://flexitac.github.io/) tactile sensors:
4
- flash Arduino firmware, then read framed sensor data over serial.
3
+ Python interface for [FlexiTac](https://flexitac.github.io/) tactile sensors.
4
+ Allows you to easily [flash](#flexitac-flash) Arduino firmware and read framed sensor data over serial.
5
5
 
6
6
  Defaults target the standard FlexiTac 12x32 sensor (12 rows wired to mux
7
7
  channels 4-15). Override `--rows`, `--cols`, and `--mux-offset` for variants.
@@ -49,12 +49,23 @@ uv run flexitac-stream --port /dev/ttyUSB0
49
49
  uv run flexitac-heatmap --port /dev/ttyUSB0
50
50
  ```
51
51
 
52
+ ### `flexitac-find-port`
53
+
54
+ Not sure which `/dev/tty*` your sensor is on? Run:
55
+
56
+ ```bash
57
+ flexitac-find-port
58
+ ```
59
+
60
+ It snapshots ports, asks you to unplug the sensor, then reports whichever port
61
+ disappeared.
62
+
52
63
  ### `flexitac-stream`
53
64
 
54
65
  Stream frames and print FPS / signal stats:
55
66
 
56
67
  ```bash
57
- flexitac-stream --port /dev/ttyUSB0 --frames 30
68
+ flexitac-stream --port /dev/ttyUSB0 --frames 3000
58
69
  ```
59
70
 
60
71
  ```
@@ -81,17 +92,6 @@ flexitac-heatmap --port /dev/ttyUSB0
81
92
 
82
93
  Press the sensor pad -- bright spots should track your touch.
83
94
 
84
- ### `flexitac-find-port`
85
-
86
- Not sure which `/dev/tty*` your sensor is on? Run:
87
-
88
- ```bash
89
- flexitac-find-port
90
- ```
91
-
92
- It snapshots ports, asks you to unplug the sensor, then reports whichever port
93
- disappeared.
94
-
95
95
  ### `flexitac-flash`
96
96
 
97
97
  Requires [`arduino-cli`](https://arduino.github.io/arduino-cli/latest/installation/).
@@ -22,9 +22,9 @@ def main() -> int:
22
22
  )
23
23
  args = parser.parse_args()
24
24
 
25
- started = time.monotonic()
26
25
  with FlexiTacSensor(args.port, rows=args.rows, cols=args.cols, baud=args.baud) as sensor:
27
26
  sensor.calibrate()
27
+ started = time.monotonic()
28
28
  if args.per_row:
29
29
  assert sensor.baseline is not None
30
30
  print("baseline per row:", [round(float(v), 1) for v in sensor.baseline.mean(axis=1)])
@@ -3,4 +3,4 @@
3
3
  from flexitac.sensor import FlexiTacFrame, FlexiTacSensor
4
4
 
5
5
  __all__ = ["FlexiTacFrame", "FlexiTacSensor"]
6
- __version__ = "0.2.0"
6
+ __version__ = "0.2.2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flexitac
3
- Version: 0.2.0
3
+ Version: 0.2.2
4
4
  Summary: Python runtime and flashing tools for FlexiTac tactile sensors
5
5
  Author-email: Wesley Maa <wesley.maa@gmail.com>
6
6
  License-Expression: MIT
@@ -24,8 +24,8 @@ Dynamic: license-file
24
24
 
25
25
  # flexitac
26
26
 
27
- Python interface for [FlexiTac](https://flexitac.github.io/) tactile sensors:
28
- flash Arduino firmware, then read framed sensor data over serial.
27
+ Python interface for [FlexiTac](https://flexitac.github.io/) tactile sensors.
28
+ Allows you to easily [flash](#flexitac-flash) Arduino firmware and read framed sensor data over serial.
29
29
 
30
30
  Defaults target the standard FlexiTac 12x32 sensor (12 rows wired to mux
31
31
  channels 4-15). Override `--rows`, `--cols`, and `--mux-offset` for variants.
@@ -73,12 +73,23 @@ uv run flexitac-stream --port /dev/ttyUSB0
73
73
  uv run flexitac-heatmap --port /dev/ttyUSB0
74
74
  ```
75
75
 
76
+ ### `flexitac-find-port`
77
+
78
+ Not sure which `/dev/tty*` your sensor is on? Run:
79
+
80
+ ```bash
81
+ flexitac-find-port
82
+ ```
83
+
84
+ It snapshots ports, asks you to unplug the sensor, then reports whichever port
85
+ disappeared.
86
+
76
87
  ### `flexitac-stream`
77
88
 
78
89
  Stream frames and print FPS / signal stats:
79
90
 
80
91
  ```bash
81
- flexitac-stream --port /dev/ttyUSB0 --frames 30
92
+ flexitac-stream --port /dev/ttyUSB0 --frames 3000
82
93
  ```
83
94
 
84
95
  ```
@@ -105,17 +116,6 @@ flexitac-heatmap --port /dev/ttyUSB0
105
116
 
106
117
  Press the sensor pad -- bright spots should track your touch.
107
118
 
108
- ### `flexitac-find-port`
109
-
110
- Not sure which `/dev/tty*` your sensor is on? Run:
111
-
112
- ```bash
113
- flexitac-find-port
114
- ```
115
-
116
- It snapshots ports, asks you to unplug the sensor, then reports whichever port
117
- disappeared.
118
-
119
119
  ### `flexitac-flash`
120
120
 
121
121
  Requires [`arduino-cli`](https://arduino.github.io/arduino-cli/latest/installation/).
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes