Sign in
About
Screenshots
Documentation
Support
Circuit Gallery
Language Reference - CLang
Functions
For controlling the Custom IC and performing computations
Main Functions
setup()
loop()
draw()
reset()
Circuit Interface
chipName(name)
pinLabel(pin, name, flags)
groundPin(pin)
powerPin(pin)
logicFamily(family)
Digital I/O
digitalRead(pin)
digitalReadNibble(a, b, c, d, value)
digitalWrite(pin, value)
digitalWriteNibble(a, b, c, d, value)
pinMode(pin, mode)
pinThreeStateMode(pin, mode)
maxvoltage(pin, max_voltage)
Analog I/O
analogRead(pin)
analogWrite(pin, value)
outputCurrent(pin)
Timing
delay(ms)
micros()
millis()
Simulation
capacitance(pin_from, pin_to, capacitance)
currentSource(pin_from, pin_to, current, flags)
inductance(pin_from, pin_to, inductance))
resistance(pin_from, pin_to, resistance, flags)
EEPROM
beginEEPROM()
writeEEPROM(address, value)
writeEEPROM16(address, value)
readEEPROM(address)
readEEPROM16(address)
updateEEPROM(address, value)
updateEEPROM16(address, value)
clearEEPROM()
Volatile Memory (RAM)
beginRAM(size, byte_width)
writeRAM(address, value)
writeRAM16(address, value)
readRAM(address)
readRAM16(address)
updateRAM(address, value)
updateRAM16(address, value)
clearRAM()
Inter-Integrated Circuit (I2C)
beginI2C
setI2CAddress(address)
beginI2CTransmission(address)
endI2CTransmission()
requestI2CFrom(address, quantity, send_stop)
writeI2C
availableI2C()
readI2C()
peekI2C()
stillOpenI2C()
isReadingI2C()
isWritingI2C()
onReceiveI2C(function)
onRequestI2C(function)
Serial Peripheral Interface (SPI)
beginSPI
beginSPITransmission(chip_select, polarity)
endSPITransmission(chip_select, polarity)
selectedSPI()
writeSPI(data)
availableSPI()
readSPI()
peekSPI()
onSPITransaction(function)
Graphics
chipWidth()
chipHeight()
drawLine(x1, y1, x2, y2)
drawRect(x, y, width, height)
fillRect(x, y, width, height)
drawCircle(x, y, radius)
fillCircle(x, y, radius)
drawText(x, y, text)
drawArc(x, y, radius, startAngle, endAngle)
fillArc(x, y, radius, startAngle, endAngle)
drawOval(x, y, width, height)
fillOval(x, y, width, height)
drawTriangle(x1, y1, x2, y2, x3, y3)
fillTriangle(x1, y1, x2, y2, x3, y3)
Math
cos(value)
sin(value)
tan(value)
acos(value)
asin(value)
atan(value)
atan2(y, x)
cosh(value)
sinh(value)
tanh(value)
acosh(value)
asinh(value)
atanh(value)
exp(value)
log(value)
log10(value)
pow(base, exponent)
square(value)
sqrt(value)
ceil(value)
floor(value)
fabs(value)
fmod(value)
modf(value, pointer)
frexp(value, pointer)
ldexp(value, exponent)
hypot(x, y)
round(value)
lround(value)
lrint(value)
trunc(value)
fdim(x, y)
fmax(x, y)
fmin(x, y)
fma(x, y, z)
isinf(value)
isnan(value)
signbit(value)
copysign(x, y)
map(x, in_min, in_max, out_min, out_max)
Download The Reference PDF
langref.pdf
Copyright © 2010-2026, Krueger Systems, Inc. All rights reserved.
Privacy Policy