Shop OBEX P1 Docs P2 Docs Learn Events
X_RFBYTE_4P modes — Parallax Forums

X_RFBYTE_4P modes

Hi all,

I currently have a buffer being sent to 4 pins using X_RFBYTE_8P_4DAC2, and it works great. I'm starting to optimize things, and now that all my signals will either be full on or off, I don't need 2 bits per signal. I thought I might be able to use one of the X_RFBYTE_4P modes to reduce my memory usage in the buffers by half (I use quite a few).

I can't seem to get any of them to work, though. I'm not sure what I'm missing. If I change 8P_4DAC2 to any combo of 8P_2DAC4, 8P_1DAC8, they all work without any other changes to the code. As soon as I do 4P_anything, I get no output. I can't find any documentation on how the modes work, so I'm not sure if it's two nibbles of data per byte, or the upper or lower half must be zero, or what. My buffer library and example code is attached. Thanks!

Sign In or Register to comment.