Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (54 sloc) 2.1 KB
<objdefs>
<obj.normal id="analog" uuid="1c0c845ed2d7e06ae5f377ba13d9d09f4747ac87" sha="e3ff2158ab5c372cfc7d9dddc5d64d55cd90c257">
<upgradeSha>7d96dca616c6a2c27e7cc6f57bd170d8ded36e1e</upgradeSha>
<sDescription>Reads an external analog voltage. Voltage range 0 to 3.3V maps to 0..64, with 12-bit precision. Apply no more than 3.3V!</sDescription>
<author>Johannes Taelman</author>
<license>BSD</license>
<helpPatch>analog.axh</helpPatch>
<inlets/>
<outlets>
<frac32 name="out" description="external analog control voltage input"/>
</outlets>
<displays/>
<params/>
<attribs>
<combo name="channel">
<MenuEntries>
<string>PA0 (ADC1_IN0)</string>
<string>PA1 (ADC1_IN1)</string>
<string>PA2 (ADC1_IN2)</string>
<string>PA3 (ADC1_IN3)</string>
<string>PA4 (ADC1_IN4)</string>
<string>PA5 (ADC1_IN5)</string>
<string>PA6 (ADC1_IN6)</string>
<string>PA7 (ADC1_IN7)</string>
<string>PB0 (ADC1_IN8)</string>
<string>PB1 (ADC1_IN9)</string>
<string>PC0 (ADC1_IN10)</string>
<string>PC1 (ADC1_IN11)</string>
<string>PC2 (ADC1_IN12)</string>
<string>PC3 (ADC1_IN13)</string>
<string>PC4 (ADC1_IN14)</string>
</MenuEntries>
<CEntries>
<string>0</string>
<string>1</string>
<string>2</string>
<string>3</string>
<string>4</string>
<string>5</string>
<string>6</string>
<string>7</string>
<string>8</string>
<string>9</string>
<string>10</string>
<string>11</string>
<string>12</string>
<string>13</string>
<string>14</string>
</CEntries>
</combo>
</attribs>
<code.krate><![CDATA[outlet_out= adcvalues[attr_channel]<<15;]]></code.krate>
</obj.normal>
</objdefs>
You can’t perform that action at this time.