Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RobTillaart/Arduino
/ setWriteProtect
Method
setWriteProtect
libraries/FRAM_I2C/FRAM.cpp:207–212 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
205
206
207
bool FRAM::setWriteProtect(bool b)
208
{
209
if (_writeProtectPin < 0) return false;
210
digitalWrite(_writeProtectPin, b ? HIGH : LOW);
211
return true;
212
}
213
214
215
bool FRAM::getWriteProtect()
Callers
1
unittest
Function · 0.80
Calls
no outgoing calls
Tested by
1
unittest
Function · 0.64