• AVR Freaks

Helpful ReplyHot!Where is mtouch/mtouch.h ?

Author
WeHongKongers
Super Member
  • Total Posts : 227
  • Reward points : 0
  • Status: offline
2020/06/01 11:44:56 (permalink)
0

Where is mtouch/mtouch.h ?

Hello,
I am simulating a PIC8 20 pins MCU project on the Curiosity LPC Board on which there is a mTouch button.
 
When I add the mTouch library from within MCC and then compile it, it shows error:
mtouch/mtouch.h file is not found.
 
So, where is this file?  I search through the XC8 directory but no result.
 
#1
katela
Super Member
  • Total Posts : 1809
  • Reward points : 0
  • Joined: 2013/06/11 05:25:18
  • Location: South Africa
  • Status: online
Re: Where is mtouch/mtouch.h ? 2020/06/01 11:56:18 (permalink)
0
Which XC8 version? Can you post your code and full error message?

Free online Microcontroller Tutorials and Projects for Hobbyists and students. From beginners to advanced. Website: www.studentcompanion.co.za
YouTube Tutorials: https://www.youtube.com/StudentCompanionSA
#2
jtemples
عُضْوٌ جَدِيد
  • Total Posts : 11885
  • Reward points : 0
  • Joined: 2004/02/13 12:31:19
  • Location: Southern California
  • Status: offline
Re: Where is mtouch/mtouch.h ? 2020/06/01 13:24:20 (permalink)
5 (1)
mtouch.h does not come from XC8.  It should be in your MCC files.
#3
XiangGao
Senior Member
  • Total Posts : 57
  • Reward points : 0
  • Joined: 2016/07/07 15:54:59
  • Location: 0
  • Status: offline
Re: Where is mtouch/mtouch.h ? 2020/06/01 21:34:54 (permalink) ☄ Helpfulby WeHongKongers 2020/06/03 00:32:49
0
Did you get any warning/notification in the MCC project?
If the mTouch module has warnings, then it will not generate the code until the warning has been fixed.
#4
WeHongKongers
Super Member
  • Total Posts : 227
  • Reward points : 0
  • Status: offline
Re: Where is mtouch/mtouch.h ? 2020/06/03 00:35:10 (permalink)
4 (1)
I see how to do it.
 
I have to add a switch to the mTouch button and then connect it to the port C1.
 
MCC will then generate all the relevant mtouch source files.  DONE!  mr green
#5
Jump to:
© 2020 APG vNext Commercial Version 4.5