Skip to content

Commit 2af8d8f

Browse files
committed
Update PWM_Mode_Teensy_Artemis.ino
- Add additional line to set Artemis PWM to 8-bit resolution just in case users need - adjust comment on applied power
1 parent fbaeaa8 commit 2af8d8f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

examples/PWM_Mode_Teensy_Artemis/PWM_Mode_Teensy_Artemis.ino

+3-2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ void setup(){
3131
//When using Teensy***************************************
3232
//analogWriteFrequency(pwmPin, 10000); // Set to 10kHz
3333
//When using Artemis***************************************
34+
//analogWriteResolution(8); //This example assumes that analogWriteResolution() is set to 8-bits on the Artemis, uncomment this line if needed
3435
analogWriteFrameWidth(1100); //Set to 10kHz (e.g. 10909Hz = 12000000/1100); too close to the boundary and the DA7280 will fault
3536

3637
Wire.begin();
@@ -59,8 +60,8 @@ void setup(){
5960

6061
void loop(){
6162

62-
// I found that the Haptic Driver stops responding around 100 for the
63-
// Artemis.
63+
// I found that the Haptic Driver stops responding when the
64+
// applied power is around 254 for the Artemis.
6465
for (int power = 20; power < 255; power++) {
6566

6667
// If uploading often the Haptic Driver IC will throw a fault when the PWM

0 commit comments

Comments
 (0)