Part Number:MSP432P401R
Dear all,
I am trying to use Booster Sensor 1 capacitive touch with MSP432. There are few programs are given on the net since TI has stopped supporting this device.
There are some nice sketches from Robert Wessels, year 2012. Unfortunately when I run those programs I get the following errors:
=========================================================================================
sketch\CapTouch.cpp.cpp: In constructor 'CapTouch::CapTouch(uint8_t, uint8_t)':
CapTouch.cpp.cpp:33:37: error: 'digitalPinToPort' was not declared in this scope
uint8_t port = digitalPinToPort(pin);
^
CapTouch.cpp.cpp:35:14: error: 'NOT_A_PORT' was not declared in this scope
if (port == NOT_A_PORT) return;
^~~~~~~~~~
CapTouch.cpp.cpp:38:30: error: 'portSel2Register' was not declared in this scope
sel2 = portSel2Register(port);
^
CapTouch.cpp.cpp:40:14: error: 'NOT_A_PORT' was not declared in this scope
if (sel2 == NOT_A_PORT) return;
^~~~~~~~~~
CapTouch.cpp.cpp:43:31: error: 'digitalPinToBitMask' was not declared in this scope
bit = digitalPinToBitMask(pin);
^
CapTouch.cpp.cpp:46:28: error: 'portSelRegister' was not declared in this scope
sel = portSelRegister(port);
=================================================================
And many more which I have not bother to include. There are all in the same context.
I have his header file, but I am sure I missing something extra. Can somebody help me since I have to take care of lecture regarding the capacitive sensor using MSP432.
Thank you in advance.
Mostafa