RECENT WORK ︎︎︎

ITP BLOG ︎︎︎

ABOUT ︎︎︎

crandall.lily@gmail.com

@dullhouze





Week 7: Programmable Air #2


My goal for this assignment was to use the pressure sensor on the board instead of delayWhileReadingPressure to achieve the inflation/deflation I wanted. 

I started by looking at my code from last week to see the range of values, which was around 488 - 510. The problem though, was that it would hover around 488 even as it was still deflating, and would hover around 510 when it still had more to inflate. I altered my code from last week to include an if statement so control when the pumps would turn on, based on the pressure reading. It turned out okay, but I wasn’t able to be as exact as I would have liked.






Code: