LPC54102 reading GPIO pins

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC54102 reading GPIO pins

579 次查看
juliancrouch
Contributor I

Hey guys!

I am working on an embedded project and am relatively new to the mc world, so go easy.  I'd ask my teacher but he is of the "you only learn it if you teach yourself" mentality...

Anyway, this is an independent study project and is only loosely related to school, so don't feel as if there is any sort of cheating going on.

We are using a LPC 54102 board and I am working on getting digital in/out working.  I can send any of my arduino shield pins HIGH/LOW no problem, but I am having a problem reading from them.  Here is what I have:

My functions

My main

Lines 57 and 58 are basically debugging tests, but I still don't know why my pinState is always getting flagged to true when I call digitalRead()

Any pointers would be amazing!

0 项奖励
2 回复数

458 次查看
martin_maurer
Contributor III

Sorry, just a quick look. You configure 0.6 and read from 0.8?

Otherwise please check if the used functions parameters are correct.

0 项奖励

458 次查看
juliancrouch
Contributor I

Yeah, I fixed that shortly after making the post, so assume that this is the new file

Revised Main

0 项奖励