summaryrefslogtreecommitdiff
path: root/wasp/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'wasp/drivers')
-rw-r--r--wasp/drivers/battery.py3
-rw-r--r--wasp/drivers/cst816s.py3
-rw-r--r--wasp/drivers/nrf_rtc.py3
-rw-r--r--wasp/drivers/signal.py3
-rw-r--r--wasp/drivers/st7789.py3
-rw-r--r--wasp/drivers/vibrator.py5
6 files changed, 19 insertions, 1 deletions
diff --git a/wasp/drivers/battery.py b/wasp/drivers/battery.py
index cc1eafb..c13f117 100644
--- a/wasp/drivers/battery.py
+++ b/wasp/drivers/battery.py
@@ -1,3 +1,6 @@
+# SPDX-License-Identifier: LGPL-3.0-or-later
+# Copyright (C) 2020 Daniel Thompson
+
# Generic lithium ion battery driver
from machine import Pin, ADC
diff --git a/wasp/drivers/cst816s.py b/wasp/drivers/cst816s.py
index 323b9cc..d0f3cd2 100644
--- a/wasp/drivers/cst816s.py
+++ b/wasp/drivers/cst816s.py
@@ -1,3 +1,6 @@
+# SPDX-License-Identifier: LGPL-3.0-or-later
+# Copyright (C) 2020 Daniel Thompson
+
"""Hynitron CST816S touch contoller driver for MicroPython.
After modifying this file we can test the changes by replacing the
diff --git a/wasp/drivers/nrf_rtc.py b/wasp/drivers/nrf_rtc.py
index d907461..497c3d6 100644
--- a/wasp/drivers/nrf_rtc.py
+++ b/wasp/drivers/nrf_rtc.py
@@ -1,3 +1,6 @@
+# SPDX-License-Identifier: LGPL-3.0-or-later
+# Copyright (C) 2020 Daniel Thompson
+
""" Real Time Clock based on the nRF-family low power counter """
import time
diff --git a/wasp/drivers/signal.py b/wasp/drivers/signal.py
index 18ce8bf..974adb5 100644
--- a/wasp/drivers/signal.py
+++ b/wasp/drivers/signal.py
@@ -1,3 +1,6 @@
+# SPDX-License-Identifier: LGPL-3.0-or-later
+# Copyright (C) 2020 Daniel Thompson
+
class Signal(object):
'''Simplified Signal class
diff --git a/wasp/drivers/st7789.py b/wasp/drivers/st7789.py
index 89ebc4c..980435b 100644
--- a/wasp/drivers/st7789.py
+++ b/wasp/drivers/st7789.py
@@ -1,3 +1,6 @@
+# SPDX-License-Identifier: LGPL-3.0-or-later
+# Copyright (C) 2020 Daniel Thompson
+
"""Sitronix ST7789 display driver for MicroPython.
Note: Although the ST7789 supports a variety of communication protocols
diff --git a/wasp/drivers/vibrator.py b/wasp/drivers/vibrator.py
index eba6018..359e738 100644
--- a/wasp/drivers/vibrator.py
+++ b/wasp/drivers/vibrator.py
@@ -1,3 +1,6 @@
+# SPDX-License-Identifier: LGPL-3.0-or-later
+# Copyright (C) 2020 Daniel Thompson
+
# Generic PWM capable vibrator
import time
@@ -11,7 +14,7 @@ class Vibrator(object):
self.period = 16000
self.active_low = active_low
- def pulse(self, duty=50, ms=100):
+ def pulse(self, duty=25, ms=40):
pwm = PWM(0, self.pin, freq=self.freq, duty=duty, period=self.period)
pwm.init()
time.sleep_ms(ms)