pika_libc Examples


pika_libc Examples

This document introduces pika_libc module’s purpose and basic usage. pika_libc provides standard C library function wrappers, specific API follows device firmware and PikaPython documentation. Reference: doc/pikapython.com/_sources/API_pika_libc.md.txt.

Module Introduction

pika_libc is used to call C library functions (such as strings, memory, math, etc.) in scripts. Built-in example (follows actual API):

#!pika
import pika_libc
# For example: pika_libc.xxx() calls specific C library wrapper
#!pika

Usage Instructions

  • Whether device includes pika_libc and which functions are exported depends on firmware and requestment.txt.
  • Before use, please check device-provided API list or PikaPython official pika_libc documentation, call by function name and parameters.
  • If Examples in documentation is empty, can refer to main manual “Standard Library Introduction” chapter, or after import pika_libc in script, check available attributes through interactive environment.