conversion from picbasic to picbasic pro


Closed Thread
Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default Re: conversion from picbasic to picbasic pro

    Hi,
    If OntvangByte is a byte (or word or long) you access its indivudal bits using the dot notation, like:
    Code:
    OntvangenByte.0 = 1  'Set bit 0
    OntvangenByte.7 = 0  'Set bit 7
    
    If Ontvangbit = 1 THEN   ' If bit is set
      OntvangByte.0 = 1       ' Set lowest significant bit in BYTE
    ENDIF
    /Henrik.

  2. #2
    Join Date
    Sep 2011
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: conversion from picbasic to picbasic pro

    Henrik,

    many Thanks

    Problem solved ! i used the , instead of the .

    IF OntvangBit = 1 THEN OntvangByte.0(bd1)=1
    thanks again

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts