How do I convert an analogue signal into a digital one? (logic)
In LittleBigPlanet, I recall doing this with batteries, although they don't appear to be present in Dreams. Specifically, what I'm aiming to do is use the input from L2 and R2, but output the maximum value at any level of pressure.
I've tried both the variable and counter gadgets (with their value set to 1), with L2 or R2 used to power it on, yet the output is still an analogue signal. Surely there must be a simple solution that I'm missing?
In addition, how would I enable a signal from L2 or R2 to only output when surpassing a specific threshold, for example 50% depressed?
-
I've just realised I haven't looked at the signal manipulator yet. I suspect that may hold a solution for both my queries; I'll be back on Dreams to check tomorrow...
-
You need a calculator gadget, to check if the output of R2 or L2 is greater than 0 (or .5 for 50%). When that is true, it will output the value 1 to whatever you wire it to.
-
https://indreams.me/element/byFCRJX3Xe0
Here's this: Add an input, if it reaches the threshold you set with the slider inside (0-1), do x thing. Else, do y thing. -
Re. batteries, their counterpart in dreams is the value slider I"d say. But like Magnus said, calculator is all you need here.
-
Thanks for the suggestions. The calculator gadget worked perfectly.
Please sign in to leave a comment.